Learn C ProgrammingLearn ProgrammingLoop Control StructuresPrograms On Loop Control Structures While And Do-WhileResources 028. Write a Program to print first n odd numbers in C language #include<stdio.h> void main() { int i=1,n,counter=1; printf("Enter n : "); scanf("%d",&n); while(iPrashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingLoop Control StructuresPrograms On Loop Control Structures While And Do-WhileResources 027. Write a Program to print first n even numbers in C language #include<stdio.h> void main() { int i=1,n,counter=2; printf("Enter n : "); scanf("%d",&n); while(iPrashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingLoop Control StructuresPrograms On Loop Control Structures While And Do-WhileResources 026. Write a Program to print numbers n to 1 using Do While loop in C language #include<stdio.h> #include<conio.h> main() { int i=1,n; clrscr(); printf("Enter n : "); scanf("%d",&n); i=n; do {…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingLoop Control StructuresPrograms On Loop Control Structures While And Do-WhileResources 025. Write a Program to print numbers 1 to n using while loop in C language #include<stdio.h> #include<conio.h> main() { int i=1,n; clrscr(); printf("Enter n : "); scanf("%d",&n); while(iPrashant ChaudhariSeptember 18, 2012