Which of the following statements advances the cursor to the next line on the computer screen? Select one: a. cout<<endl; b. none of the choices c. cout<<newline; d. cout<<endline; code example
Example 1: how to print in c++
#include <iostream>
using namespace std;
int main(){
cout<<"Hello World!"<< endl; // prints "Hello World"
return 0;
}
Example 2: how to print in c++
#include <iostream>
int main() {
std::cout << "Hello World!"; //cout keyword prints "Hello World!"
return 0;
}