#include

using namespace std; Alternatively, you can declare the standard namespace just for the “cout” object. To do so, type using std::cout; instead. This will declare the “std” namespace whenever the “cout” object is used by default.

int main(). Then add the opening { on the next line.

If you did not declare the “std” namespace at the beginning of your program, you can declare it on each line you use the “cout” object. To do so, type std::cout each time you use the “cout” object.

When printing a string, put the text of your string in quotation marks. When printing a variable, just enter the variable name without quotation marks after “«”. . If you want to add a line break after your printed text, add the modifier « endl after text and variables you want to print. The next printed object will be printed on a new line.

When you reach the last line of code in your main function, enter return 0; as the last line of code. This signifies the program has been completed successfully. Then enter the closing bracket after this line. Your program should look something like the following: #include using namespace std; int main() { int x = 25; //This specifies that the integer “x” is equal to 25. cout « “X is equal to " « x; //This should print “X is equal to 25. " return 0; }

When you reach the last line of code in your main function, enter return 0; as the last line of code. This signifies the program has been completed successfully. Then enter the closing bracket after this line. Your program should look something like the following: #include using namespace std; int main() { int x = 25; //This specifies that the integer “x” is equal to 25. cout « “X is equal to " « x; //This should print “X is equal to 25. " return 0; }

#include <stdio. h>

int main(). Then add the opening { on the next line. You can use the “printf” object as its own function. To do so, type int printf();

%c — Character %s — String %p — Pointer address %i or %d — Signed integer %u — Unsigned integer %o — Unsigned octal %x or %X — Unsigned hexadecimal (lower/upper case) %e or %E — Floating point %g or %G — Shortest representation %a or %A — Hexidecimal Floating Point <li<\n — Creates a line break after the printed text

When you reach the last line of code in your main function, enter return 0; as the last line of code. This signifies the program has been completed successfully. Then enter the closing bracket after this line. Your program should look something like the following: #include <stdio. h> int main() { int x = 15; // This specifies that the integer “x” is equal to 15. printf(“X is equal to %d\n”, x); // This should print “X is equal to 15. " The “%d” specifies the variable is a signed integer, and the “\n” adds a line break after the printed text. return 0; }