Advance Programs On For LoopLearn C ProgrammingLearn ProgrammingLoop Control StructuresResources 051. Write a program to print digits, alphabets in capital and lower case in C language #include<stdio.h> #include<conio.h> main() { int i; clrscr(); for(i=65;iPrashant ChaudhariSeptember 18, 2012
Advance Programs On For LoopLearn C ProgrammingLearn ProgrammingLoop Control StructuresResources 050. Write a program to accept a number and print fibonacci series upto that level in C language #include<stdio.h> #include<conio.h> main() { int pre=1,cur=1,temp,i,n; clrscr(); printf("Enter number..."); scanf("%d",&n); printf("%d\t%d",pre,cur); for(i=3;iPrashant ChaudhariSeptember 18, 2012
Advance Programs On For LoopLearn C ProgrammingLearn ProgrammingLoop Control StructuresResources 049. Write a program to accept a number and print prime numbers between 2 and n in C language #include<stdio.h> #include<conio.h> #include<process.h> main() { int i,flag=1,n,newn; clrscr(); printf("Enter number..."); scanf("%d",&n); for(newn=2;newnPrashant ChaudhariSeptember 18, 2012
Advance Programs On For LoopLearn C ProgrammingLearn ProgrammingLoop Control StructuresResources 048. Write a program to accept a number from user and print if it is prime or not in C language #include<conio.h> #include<process.h> main() { int i,n; clrscr(); printf("Enter number..."); scanf("%d",&n); for(i=2;iPrashant ChaudhariSeptember 18, 2012
Advance Programs On For LoopLearn C ProgrammingLearn ProgrammingLoop Control StructuresResources 047. Write a program to accept a number from user and print it’s factorial in C language Eg: factorial of 5 is:- 5! = 5 * 4 * 3 * 2 *…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingLoop Control StructuresPrograms On For Loop-Pattern ProgrammingResources 046. Write a program to print following outputs in C language 1 11 121 1231 12341 123451 #include<stdio.h> #include<conio.h> main() { int i,j,n; clrscr(); printf("Enter number...");…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingLoop Control StructuresPrograms On For Loop-Pattern ProgrammingResources 045. Write a program to print following outputs in C language ABCDEEDCBA ABCD DCBA ABC CBA AB BA A A #include<stdio.h> #include<conio.h> main() { int i,n,j,k;…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingLoop Control StructuresPrograms On For Loop-Pattern ProgrammingResources 044. Write a program to print following outputs in C language A BBB CCCCC DDDDDDD #include<stdio.h> #include<conio.h> main() { int i,j,k,n; clrscr(); printf("Enter number : ");…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingLoop Control StructuresPrograms On For Loop-Pattern ProgrammingResources 043. Write a program to print following outputs in C language 1 22 333 4444 #include<stdio.h> #include<conio.h> main() { int i,j,k,n; clrscr(); printf("Enter number : ");…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingLoop Control StructuresPrograms On For Loop-Pattern ProgrammingResources 042. Write a program to print following outputs in C language 1 12 123 1234 #include<stdio.h> #include<conio.h> main() { int i,j,k,n; clrscr(); printf("Enter number : ");…Prashant ChaudhariSeptember 18, 2012