Step-by-step explanation:
CLS
x=1
For I = 1 to 10
Print x;
x = x+1
Next I
End
Answer:
Using for loop:
int i=0;
for(i=1;i<=10;i++)
{
printf(“%d”,i);
}
Using while loop:
int i=1;
while(i<=10)
i++;
Using do while loop:
do
}while(i<=10);
4.4m questions
5.7m answers