Loop
Required knowledge
List of loop programming exercises
- Write a C program to print all natural numbers from 1 to n. - using while loop
- Write a C program to print all natural numbers in reverse (from n to 1). - using while loop
- Write a C program to print all alphabets from a to z. - using while loop
- Write a C program to print all even numbers between 1 to 100. - using while loop
- Write a C program to print all odd number between 1 to 100.
- Write a C program to find sum of all natural numbers between 1 to n.
- Write a C program to find sum of all even numbers between 1 to n.
- Write a C program to find sum of all odd numbers between 1 to n.
- Write a C program to print multiplication table of any number.
- Write a C program to count number of digits in a number.
- Write a C program to find first and last digit of a number.
- Write a C program to find sum of first and last digit of a number.
- Write a C program to swap first and last digits of a number.
- Write a C program to calculate sum of digits of a number.
- Write a C program to calculate product of digits of a number.
- Write a C program to enter a number and print its reverse.
- Write a C program to check whether a number is palindrome or not.
- Write a C program to find frequency of each digit in a given integer.
- Write a C program to enter a number and print it in words.
- Write a C program to print all ASCII character with their values.
- Write a C program to find power of a number using for loop.
- Write a C program to find all factors of a number.
- Write a C program to calculate factorial of a number.
- Write a C program to find HCF (GCD) of two numbers.
- Write a C program to find LCM of two numbers.
- Write a C program to check whether a number is Prime number or not.
- Write a C program to print all Prime numbers between 1 to n.
- Write a C program to find sum of all prime numbers between 1 to n.
- Write a C program to find all prime factors of a number.
- Write a C program to check whether a number is Armstrong number or not.
- Write a C program to print all Armstrong numbers between 1 to n.
- Write a C program to check whether a number is Perfect number or not.
- Write a C program to print all Perfect numbers between 1 to n.
- Write a C program to check whether a number is Strong number or not.
- Write a C program to print all Strong numbers between 1 to n.
- Write a C program to print Fibonacci series up to n terms.
- Write a C program to find one's complement of a binary number.
- Write a C program to find two's complement of a binary number.
- Write a C program to convert Binary to Octal number system.
- Write a C program to convert Binary to Decimal number system.
- Write a C program to convert Binary to Hexadecimal number system.
- Write a C program to convert Octal to Binary number system.
- Write a C program to convert Octal to Decimal number system.
- Write a C program to convert Octal to Hexadecimal number system.
- Write a C program to convert Decimal to Binary number system.
- Write a C program to convert Decimal to Octal number system.
- Write a C program to convert Decimal to Hexadecimal number system.
- Write a C program to convert Hexadecimal to Binary number system.
- Write a C program to convert Hexadecimal to Octal number system.
- Write a C program to convert Hexadecimal to Decimal number system.
- Write a C program to print Pascal triangle upto n rows.
- Star pattern programs - Write a C program to print the given star patterns.
- Number pattern programs - Write a C program to print the given number patterns.
No comments