44. Series 2
Write a program to generate the first n terms in the series --- 20,19,17,..,10,5 Input Format: Input consists of a single integer which ...
Read more »Write a program to generate the first n terms in the series --- 20,19,17,..,10,5 Input Format: Input consists of a single integer which ...
Read more »1)Write a program to generate the first n terms in the series --- 1,4,9,16,25, .... Input Format: Input consists of a single integer wh...
Read more »Code: To find valid numbers #include<stdio.h> int main(){ int n,count=0;; while(1){ printf("Enter the number\n...
Read more »Code: Multiplication Table #include<stdio.h> int main(){ int n, m,i; printf("Enter n\n"); scanf("%d...
Read more »Count positive and negative Code: #include<stdio.h> int main() { int n,i,j[20],count=0,count1=0; printf("Enter the ...
Read more »Sum of 'n' positive numbers Code: #include<stdio.h> int main() { int n,i; int a, count=0,sum=0; printf("...
Read more »Sum of 'n' numbers Sum of 'n' numbers in C Programming Code: #include<stdio.h> int main(){ int a[10],n,sum...
Read more »C program to print all numbers between a and b (a and b inclusive) using for loops. Input Format: Input consists of 2 integers. The firs...
Read more »C program to print all numbers between a and b (a and b inclusive) using a for loop. Input Format: Input consists of 2 integers. The fir...
Read more »Write a C program to print all numbers between a and b (a and b inclusive) using a for loop. Input Format: Input consists of 2 integers....
Read more »Code: #include<stdio.h> void p(float); int main() { int month,n; float rent,t=0,r=0; scanf("%d\n",&mont...
Read more »Code: #include<stdio.h> int main() { char s[1]; int sum=0; int rpaper,rfee,arrear,afees; scanf("%s",s); ...
Read more »BASIC CALCULATOR Program in C Code: #include<stdio.h> int main() { int a,b; char o[1]; scanf("%d",&a);...
Read more »Code: #include<stdio.h> int main(){ int n; scanf("%d\n",&n); switch (n) { case 1: prin...
Read more »Code: #include<stdio.h> int main(){ signed int current, birth, a; printf("Enter Year of Birth\n"); scanf(...
Read more »Code: #include<stdio.h> int main(){ int s1,s2; printf("Enter the number of students in college 1\n"); scanf(...
Read more »Code: #include<stdio.h> int main(){ int age,w; printf("Enter your Age:\n"); scanf("%d",&age); ...
Read more »Code: #include<stdio.h> int main() { int time,t[3]; printf("Enter the Time Limit:\n"); scanf("%d",...
Read more »Code: #include<stdio.h> int main(){ int n; printf("Press a number:\n"); scanf("%d",&n); if...
Read more »Code: #include<stdio.h> int main(){ int n; printf("Enter the Balloon's number:\n"); scanf("%d...
Read more »NEW or OLD in C Programming Code: #include<stdio.h> int main(){ int y1,y2; printf("Enter the year of establishment ...
Read more »IN / OUT in C Programming Code: #include<stdio.h> int main() { int mincount, maxcount, c; printf("Enter the number...
Read more »CHARACTER – UPPER OR LOWER in C Programming Code: #include<stdio.h> int main() { char a; scanf("%c",&a); ...
Read more »CALCULATE GRADE in C Programming Code: #include<stdio.h> int main() { int a,b,c,avg=0; scanf("%d", &a); ...
Read more »LEAP YEAR Program in C Code: #include<stdio.h> int main(){ int y; scanf("%d",&y); if((y%400==0)) pr...
Read more »MAXIMUM OF 3 in C Programming Code: #include<stdio.h> int main(){ int a,b,c; scanf("%d",&a); scanf(...
Read more »MAXIMUM OF 2 in C Programming Code: #include<stdio.h> int main(){ int a,b; scanf("%d",&a); scanf("...
Read more »DIVISIBLE BY 2 OR 3 in C Code: #include<stdio.h> int main(){ int a; scanf("%d",&a); if((a%2==0)||(a%3...
Read more »DIVISIBLE BY 7 AND 3 in C programming Code: #include<stdio.h> int main(){ int a; scanf("%d",&a); if((a%...
Read more »ODD OR EVEN C Program Code: #include<stdio.h> int main(){ int a; scanf("%d",&a); if(a%2==0) prin...
Read more »Code: #include<stdio.h> int main(){ float s[5],a; printf("Enter sale in first month\n"); scanf("%f...
Read more »Code: #include<stdio.h> int main(){ int n,c,s,o=0; printf("Enter the number of copies sold\n"); scanf("%...
Read more »Code: #include<stdio.h> int main() { int x1,x2,x3,y1,y2,y3; printf("Enter x1\n"); scanf("%d",&...
Read more »Code: #include<stdio.h> int main(){ char s='('; char ss=')'; int x1,x2,y1,y2; float mid1,mid2; pr...
Read more »Code: #include<stdio.h> int main(){ int m,x,y,c; printf("Enter the value of m\n"); scanf("%d",&...
Read more »Code: #include<stdio.h> #include<math.h> int main(){ int x1,x2,x3,y1,y2,y3; float ab,bc,ac; printf("Enter t...
Read more »Code: #include<stdio.h> int main(){ int x,y,l; char s='('; char ss=')'; printf("Enter the x-co...
Read more »Code: #include<stdio.h> int main(){ int l,w; printf("Enter the length of the ground\n"); scanf("%d"...
Read more »Code: #include<stdio.h> int main(){ int b,a,c; printf("The bird said:\n"); scanf("%d",&b); a...
Read more »Code: #include<stdio.h> int main(){ int n,t,cal=0, call; printf("Enter the number of students in the class\n"); s...
Read more »Code: #include<stdio.h> int main(){ int a,b,c; char d=')'; printf("Enter the number of people dead:\n"); ...
Read more »Code: #include<stdio.h> #include<string.h> int main(){ char name[100], creator[150], purpose[150]; int mspace; f...
Read more »Code: #include<stdio.h> int main(){ printf("Hello Aliens ! Welcome to our planet Earth."); return 0; }
Read more »Hello World! in C Programming Code: #include<stdio.h> int main(){ printf("Hello World!"); return 0; }
Read more »