int sum=0;
for (int i=0; i<=3; i++)
{
sum = sum + i*i;
cout << i <<sum;
}
The Out Put Is:_______ 2,6,15 is this the ouput
n=13;
do
{
n +=3;
cout<<n;
} while (n <=13);
The Out Put Is:_______ 0 False is this the ouput
n=4;
while (n <=13)
{
n +=3;
cout<<n;
}
The Out Put Is:_______ 7 is this the output
Last edited on
why don't you compile the code? Then you can see for yourself what the output is.