### C program to find sum and average of three numbers

This C program adds three numbers entered by the user, finds their average up to two decimal places and then prints the results. Prerequisite knowledge: Basic syntax. Average of 3 …

### C program to find the square and cube of a number

In this C program, the user enters a number and you have to calculate its square and cube. Prerequisite knowledge: Basic syntax. Basic mathematics. Program: C program to find the …

### C program to find sum of digits of a number

This C program calculates the sum of the digits of a number. Algorithm: Extract the digits of the number and simply add them all, that’s it. Code 1: C program …

### How to reverse a number in C

Program: Write a C program to reverse the digits of a number Important topics: Remainder, division, number system, while loop. Algorithm: Extract all the digits from the given number and …

### Python program to print even and odd numbers from 1 to 100

In this article you’ll learn: Python program to check whether a number is even or odd Python program to print even and odd numbers from 1 to 100 using various …

### C program to check whether a number is even or odd

This C program checks whether the entered number is even or odd. Same algorithm is used to check whether a given number is even or odd. Prerequisite knowledge: A number …

### Python program to calculate area and circumference of a circle

This python program/script calculates and prints the area and circumference of a circle. In both the cases, the user enters the radius of the circle. Prerequisite knowledge: Value of pi …

### C program to calculate area and circumference of a circle

This C program calculates and prints the area and circumference of a circle. The user enters the radius of the circle. Basic Mathematics : Area of a circle – π …

### C program to change the case of an alphabet

C program to convert lowercase alphabet to uppercase and uppercase alphabet to lowercase. 