What will be the value of counter and num after the execution of the following program.
Void main()
{
Int counter=1;
Int digit=0,num=2;
While (digit <=10)
{
++counter;
num++;
++ digit;
Cout <
Cout <
}
}
Answers
Answered by
3
Value of num will be 13 and that of counter will be 12.
Answered by
0
value of num be 13 and counter is 12
Similar questions
# include
# include
Void main ()
{
Char A [100];
Char B [160];
Cout <<"input string";
Gets (A);
Puts (A);
Cout <<"input new string";
Gets (B);
Strcpy (A,B);
Cout <<"final string is "<