/*Write a program in C to print from 1 to n*/ //Using a while (condition) loop #include int main () { int n, i=1; printf ("\nEnter the limit: "); scanf ("%d", &n); while (i <= n) { printf("\n%d", i); i++; //incrementing value of i by 1 } return 0; }