CodeLab

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Suppose your name was George Gershwin. Write a complete program that would print your last name, followed by a comma, followed by your first name. Do not print anything else (that includes blanks).

#include <iostream> using namespace std; int main(){ cout << "Gershwin" << "," << "George"; }

Write a complete program that prints Hello World to the screen

#include <iostream> using namespace std; int main(){ cout << "Hello World"; }

Write a literal representing the integer value zero.

0

Write a statement that prints Hello World to the screen.

cout << "Hello World";

Suppose your name was Alan Turing. Write a statement that would print your last name, followed by a comma, followed by your first name. Do not print anything else (that includes blanks).

cout << "Turing" << "," << "Alan";

Write a statement that prints the following to standard output: i= Just write one statement that generates the message above: do not generate any extraneous spaces. Do not declare variables, do not write a main() function, do not write a whole program.

cout << "i=";


Kaugnay na mga set ng pag-aaral

Unit 2: From the Middle Ages to the Renaissance Test

View Set

Advantages/Disadvantages of Sole Proprietorship, Partnerships, and Corporations

View Set

Davis Advantage- Chapter 24: Endocrine

View Set

Chapter 8: Organizational Ethics and Law

View Set