Computer Science, asked by rsharma95337, 8 months ago

Symbol is used to terminate each statement of c.

Answers

Answered by shubhamverma90
0

Answer:

Colon*b. Semicolonc. Single quoted. Period10. Assuming that a user enters 45, 78, and 12 one after another, what is the output of the following code snippet? int main() { int num1; int num2; int num3 = 0;

cout << "Enter a number: "; cin >> num1; cout << "Enter a number: "; cin >> num2; cout << "Enter a number: "; cin >> num3; if (!(num1 > num2 && num1 > num3)) { cout << num1 << endl; } else if (!(num2 > num1 && num2 > num3)) { cout << num2 << endl; } else if (!(num3 > num1 && num3 > num2)) { cout << num3 << endl; } return 0; }11. What is the output of the code snippet given below? int i; int j = 0; for (i = 0; i < 6; i++) { if (i % 2 == 0) { i = i + 2; j++; }

Similar questions