int x, y; for (x=1; x < 57; x+= 2) y = x;
int n=0; while (n < 100) value = n*n;
i = 1; while (i <= 10 ) cout << i; i++;
x = 1;
while (x < 57)
{
y = x;
x += 2;
}
int i, sum =0;
i = 0;
while (i <= 100)
{
sum += i;
i++;
}
int i, sum =0;
i = 0;
do
{
sum += i;
i++;
}while (i <= 100);
int i, sum =0;
for (i=0; i <= 100, i++)
{
sum += i;
}
Back to Questions
|
Back to Main Page for Lecture 4 |