int a=1;
while(a <= 10)
{
...
a++;
}
|
int a=1;
while(a <= 10)
{
...
a+=3;
} |
int a=0;
while(a < 10)
{
...
a*=2;
} |
int a=15;
while(a > 0)
{
...
a/=2;
} |
int a=15;
while(a >= 0)
{
...
a-=3;
} |
int a=1, b=0;
while(a < 10)
{
b++;
a+=2;
} |
int a=0, b=1;
while(a < 10)
{
a+=b;
b++;
} |
int a=0, b=1;
while(a < 10)
{
a+=b;
b+=2;
} |
int a=10, b=1;
while(a > 0)
{
a-=b;
b++;
} |
int a=1, b=10, c=0;
while(a <= b)
{
c+=(a%2==0)?1:0;
a++;
} |
int a=1, b=10, c=0;
while(a <= b)
{
c+=(b%a==0)?1:0;
a++;
} |
|