231k views
3 votes
Add a single line comment same as before that states you are doing calculations.

User Nburk
by
6.4k points

1 Answer

4 votes

Answer:

// you are doing calculations.

Explanation:

Here we add the single line comment i.e you are doing calculations by // forward slash. If you are making a comment more then the single line its better to use /* comments statements */.

For example:

/* print welcome on screen

print in nextline */

Following are the program in c++ language.

#include<iostream> // header file

using namespace std; // namespace

int main() // main method

{

int a=9,b=89; // variable declaration

// you are doing calculations.

int c=a+b;

cout<<c; // display c

return 0;

}

Output:98

User Chantell Osejo
by
6.7k points