Learn C ProgrammingLearn ProgrammingPrograms On Case Control StructureResources 059. Write a Program to accept two numbers and a operator (+, -, *, / from user and complete that particular operation only in C language #include<stdio.h> #include<conio.h> main() { int n,rem,a,b; char op; clrscr(); printf("Enter Operator(+,-,*,/)..."); scanf("%c",&op); printf("Enter numbers..."); scanf("%d%d",&a,&b);…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On Case Control StructureResources 058. Write a program to accept a number from user and print that number in words but in reverse order in C language E.g. 153 -> THREE FIVE ONE #include<stdio.h> #include<conio.h> main() { int n,rem; clrscr(); printf("Enter number...");…Prashant ChaudhariSeptember 18, 2012
Advance Programs On For LoopLearn C ProgrammingLearn ProgrammingLoop Control StructuresPrograms On Case Control StructureResources 057. Write a program to accept a single value interger from user and print that integer in words in C language #include<stdio.h> #include<conio.h> main() { int n; clrscr(); printf("Enter number..."); scanf("%1d",&n); //%1d to scan single integer…Prashant ChaudhariSeptember 18, 2012
Advance Programs On For LoopLearn C ProgrammingLearn ProgrammingLoop Control StructuresResources 056. Write a program to print following output #include<stdio.h> #include<conio.h> main() { int i, j; clrscr(); printf("╔"); for(i=2;iPrashant ChaudhariSeptember 18, 2012
Advance Programs On For LoopLearn C ProgrammingLearn ProgrammingLoop Control StructuresResources 055. Write a program to print following output ******************************* * * * * * * ******************************* #include<stdio.h> #include<conio.h> main() { int i,j; clrscr();…Prashant ChaudhariSeptember 18, 2012
Advance Programs On For LoopLearn C ProgrammingLearn ProgrammingLoop Control StructuresResources 054. Write a program to print out ASCII chart on a single screen (all 256 characters from 0 to 255) in a tabular form. The ASCII code should be followed by the corresponding character in C language #include<stdio.h> #include<conio.h> main() { int i; clrscr(); for(i=0;iPrashant ChaudhariSeptember 18, 2012
Advance Programs On For LoopLearn C ProgrammingLearn ProgrammingLoop Control StructuresResources 053. Write a program to read n numbers (Xi) from the user and print out their average and standard deviation. Formulae are Average = (Sum of Xi)/n #include<stdio.h> #include<conio.h> main() { int n,i,newn,sum_avg=0; float avg; clrscr(); printf("Enter…Prashant ChaudhariSeptember 18, 2012
Advance Programs On For LoopLearn C ProgrammingLearn ProgrammingLoop Control StructuresResources 052. Write a program to accept a number n from user and Add n terms of the series in C language 1/2! + 2/3! + 3/4! + 4/5! + 5/6! + ......... #include<stdio.h> #include<conio.h> main() {…Prashant ChaudhariSeptember 18, 2012
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