C Program to Check Whether a Number is Palindrome or Not

Problem Description Write a C Program to check whether a given number is Palindrome or not. What is Palindrome Number in C? A number is said to be a palindrome number if it reads the same forward and backward i.e., on reversing the digits of the number we get the same number. Example: 121, 343. … Read more

advertisement

Star Pattern Programs in C

Problem Description Create star pattern programs in C programming upon receiving number of rows as input. star patterns like rhombus star pattern, hollow star pyramid pattern, plus star pattern, star patterns using while loop and functions. What is Star pattern in C? A star pattern is a pattern that shows up as a staircase of … Read more

advertisement

Pyramid Patterns in C

What is a Pyramid Pattern? A pyramid pattern in a two-dimensional plane is equal to an equilateral triangle. There are many variations of these pyramid patterns such as half pyramid, inverted pyramid, and diamond shape. Let us see how we can draw all these shapes using C language and understand the process. Problem Description Write … Read more

advertisement

Strong Number Program in C

Strong Number Program in C: A strong number is a number that is the sum of the factorial of its digits. Examples: Assume the number is 145, which equals 1! + 4! + 5! = 1 + 24 + 120 = 145. 145 is a strong number since the sum of its factorials equals the … Read more

advertisement

C Program to Find Quotient and Remainder

Problem Description Write a C program to find quotient and remainder of two numbers. Quotient: The result of dividing one integer by another is the quotient. For example, if we divide 9 by 3, the result is 3, which is the quotient. Remainder: The value remaining after division is called the remainder. If one number … Read more

advertisement

C Program to Add Two Numbers

Addition of Two Integers in C: Addition in math is a process of combining two or more numbers. The result of the final answer we get after the process is called the sum. Examples: Input: A = 4, B = 3 Output: A + B = 4 + 3 = 7 Input: A = 12, … Read more

advertisement

C Program to Find Compound Interest

Problem Description: Write a C program to calculate compound interest. What is Compund Interest? Compound Interest is the interest on principal as well as the interest earned over the period. That is for the first year, it will return interest on principal, but from the second year it’s new principal will be the original principal … Read more

advertisement

C Program to Find Square Root of a Number

Square Root Program in C: The square root of a number is defined as the value, which gives the number when it is multiplied by itself i.e half power of the number. The radical symbol √ is used to indicate the square root. Examples: If the number is 25, its square root is 5. If … Read more

advertisement

C Program to Find Nth Armstrong Number

A positive integer of n digits is said to be an Armstrong number of order n if the sum of its digits raised to the nth power equals the number itself. Armstrong Number Formula: wxyz… = pow(w,n) + pow(x,n) + pow(y,n) + pow(z,n) + ….. Example: 370 (n=3) because 33 + 73 + o3 = … Read more

advertisement

C Program to Find Power of a Number

Power of a Number in C is usually represented with a base and an exponent. The base tells us what number is being multiplied and exponent tells us how many times the number is being multiplied. So, a power is the product of multiplying the number by itself. Examples: 5^3 = 125. Here, 5 is … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & technical discussions at Telegram SanfoundryClasses.