Check whether number is strong or not - Strong Number - Strong number is a special number whose sum of factorial of digits is equal to the origin…
Read moreCheck whether number is Armstrong number or not - Armstrong Number - Armstrong number is a number that is equal to the sum of cubes of its digits…
Read morePrint first digit of a number - #include <stdio.h> int main() { int n; printf("Enter the number "); scanf("%d",…
Read moreCount Digits in a number- #include <stdio.h> int main() { int n,count=0; printf("Enter the number "); scanf("%d"…
Read morePrint From n to 1 - #include <stdio.h> int main() { int n,i; printf("Enter the number "); scanf("%d",&n); //I…
Read morePrint numbers upto n terms - #include <stdio.h> int main() { int n,i; printf("Enter the number "); scanf("%d",&am…
Read moreEnter units to find electricity bill - Question- For first 50 units Rs. 2.50/unit For next 100 units Rs. 2.75/unit For next 100 units Rs. 4.20/u…
Read moreEnter the sum to find number of notes - Q- Write a C program to input amount from user and print minimum number of notes (Rs. 2000, 500, 100, 50, 2…
Read moreFind sum of digits of a number - #include <stdio.h> int main() { int r,n,sum=0; scanf("%d",&n); while(n>0) { r…
Read more1. Direct method - #include <stdio.h> int main() { int a,o,t,h,th,n; scanf("%d",&a); o=a/1000;a=a%1000; t=a/100;a=a%10…
Read moreCalculator switch #include<stdio.h> int main() { int a,b; char o; printf("Enter the numbers "); scanf("%d …
Read morew pattern using loop - #include <stdio.h> int main() { int i,j; for(i=0;i<=3;i++) { for(j=1;j<=i;j++) …
Read more1.Lower triangle counting pattern - #include <stdio.h> int main() { int i,j; for(i=1;i<=5;i++) { for(j=1;j<=i;…
Read moreNumber of days in a month - #include<stdio.h> int main () { int a; printf("Enter month "); scanf("%d",&…
Read moreFibonacci series Do-while #include <stdio.h> int main() { int a=0,b=1,c,n; printf("Enter the max. value = "); sc…
Read moreWAP to write the Factorial series - Factorial Number - In mathematics, the factorial of a positive integer n, denoted by n!, is the product of all …
Read moreMultiplication Table - #include <stdio.h> int main() { int i,a; printf("Enter the value for table = "); scanf("%d…
Read moreSum from a to b natural numbers - #include <stdio.h> int main() { int a,b,i,s1=0,s2=0,s; printf("Enter The numbers "); scanf(&q…
Read moreSum of n numbers - #include <stdio.h> int main() { int n,i,s=0; printf("Enter the number "); scanf("%d",&n); for…
Read moreWhether the character is uppercase or lowercase and convert it into another - #include <stdio.h> int main() { char ch; printf("Ente…
Read more
Social Plugin