Tag: Loop
Posts of Tag: Loop
  1. Program for Armstrong Number in C

    Here you will get program for armstrong number in C. Armstrong number is n digits number whose sum of digits raised to power n is equal to itself. For example: 371 is armstrong number because 33 + 73 ...Learn More
    C ProgramsLoopProgramming Languages
  2. Program to Reverse Number in C

    Here you will learn how to reverse number in C. #include<stdio.h> int main() { long n,rev=0,d; printf("Enter any number:"); scanf("%ld",&n); while(n!=0) { d=n%10; ...Learn More
    C ProgramsLoopProgramming Languages
  3. [C program] find largest number of a list of numbers entered from keyboard

    C program to find largest number of a list of numbers entered through keyboard #include <stdio.h> #include <conio.h> void main() { int i, n, x, large = 0; clrscr(); //to clear the screen ...Learn More
    C ProgramsLoopProgramming Languages
  4. C program to print the truth table for XY+Z

    #include <stdio.h> #include <conio.h> void main() { int x, y, z; clrscr(); //to clear the screen printf("XtYtZtXY+Z"); for (x = 0; x <= 1; ++x) for (y = 0; y <= 1; ++...Learn More
    C ProgramsLoopProgramming Languages
  5. C program to find average of list of numbers entered through keyboard

    #include <stdio.h> #include <conio.h> void main() { int i, n, sum = 0, e; float avg; clrscr(); //to clear the screen printf("How many elements:"); scanf("%d", &n); prin...Learn More
    C ProgramsLoopProgramming Languages
  6. Program for Fibonacci Series in C

    In this tutorial you will learn about program for fibonacci series in c. Fibonacci series is a sequence of numbers in which next number in the sequence is obtained by adding previous two numbers. For example&nb...Learn More
    LoopC ProgramsProgramming Languages
  7. C Program to Print Multiplication Table of Given Number

    Here you will get C program to print multiplication table of given number. Below program will ask user to enter a number then display its table. #include<stdio.h> int main() { int i,n; printf("En...Learn More
    C ProgramsLoopProgramming Languages
  8. C program to generate divisors of an integer

    #include <stdio.h> #include <conio.h> void main() { int i, n; clrscr(); //to clear the screen printf("Enter any number:"); scanf("%d", &n); printf("nDivisors of %d are", n)...Learn More
    C ProgramsLoopProgramming Languages
  9. Program for Number Palindrome in C

    Here you will get program for number palindrome in C. A number is palindrome if it is equal to its reverse. For example 121, 111, 1331 are palindrome numbers. Program for Number Palindrome in C #include<stdi...Learn More
    C ProgramsLoop
  10. Program for Prime Number in C

    Here you will get program for prime number in C. A number that is only divisible by 1 or itself is called prime number. For example, 17 is prime, 6 is not prime, etc. Program for Prime Number in C #include<s...Learn More
    C ProgramsLoopProgramming Languages
  11. Program for Factorial in C

    Here you will get program for factorial in C. We can find factorial of any number by multiplying it with all the numbers below it. For example, factorial of 3 will be 6 (3 * 2 * 1). Program for Factorial i...Learn More
    C ProgramsLoop
  12. C Program to Print First n Natural Numbers and their Sum

    Here you will get C program to print first n natural numbers and their sum. #include<stdio.h> int main() { int n,i,sum=0; printf("Enter the value of n:"); scanf("%d",&n); for(i=1;i&l...Learn More
    C ProgramsLoop