#include <stdio.h> int main () { int a; /* for loop execution */ for ( a = 10 ; a < 20 ; a = a + 1 ){ printf ( "value of a: %d\n " , a); } return 0 ; }
#include <stdio.h> int main () { //loop counter declaration int number; //assign initial value //from where we want to print the numbers number = 1 ; //print statement printf ( "Numbers from 1 to 10: \n " ); //while loop, that will print numbers //from 1 to 10 while (number <= 10 ) /* 10 is for example if your write another it will print Must Try it */ { ...