Write a C++ program that outputs "My first C++ program" and then outputs a carriage return.
What will be an ideal response?
#include
using namespace std;
int main()
{
cout << “My first C++ program” << endl;
}
Computer Science & Information Technology
You might also like to view...
Which of the following is NOT true about PivotTables?
A) PivotTables can arrange data in columns or rows. B) PivotTables can summarize data. C) PivotTables can Auto Refresh data. D) PivotTables are dynamic.
Computer Science & Information Technology
In the following code that uses recursion to find the greatest common divisor of a number, what is the base case?
``` public static int gcd(int x, int y) { if (x % y == 0) return y; else return gcd(y, x % y); } ``` a. gcd(int x, int y) b. if (x % y == 0) return y; c. else return gcd(y, x % y); d. Cannot tell from this code
Computer Science & Information Technology