Algorithm Analysis
The input number can be negative. The number n is two-digit if or .
Algorithm Implementation
Read the input number n.
scanf("%d", &n);
Output the answer.
if ((n > -100 && n < -9) || (n > 9 && n < 100)) puts("Ok"); else puts("No");
The input number can be negative. The number n is two-digit if or .
Read the input number n.
scanf("%d", &n);
Output the answer.
if ((n > -100 && n < -9) || (n > 9 && n < 100)) puts("Ok"); else puts("No");