Question

Create a code in C ++. The code must include a declaration of a variable to...

Create a code in C ++. The code must include a declaration of a variable to save an integer. The initialization of the variable for the value .35 and a message that prints to the screen the following: "To print a new line we must use \ n and to print a tab \ t"
0 0
Add a comment Improve this question Transcribed image text
Answer #1

CODE IN C++:

#include <iostream>

using namespace std;

int main()
{
//declaring integer variable
int num ;
//initializing the value to variable
num = 35;
//displaying the message to the screen
cout<<"\"To print a new line we must use \\n and to print a tab \\t\"";

return 0;
}

OUTPUT:

Add a comment
Know the answer?
Add Answer to:
Create a code in C ++. The code must include a declaration of a variable to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT