Latest

# Browsing: cpp programs

## [C/C++] Convert Given Number of Days into Years, Weeks and Days

Program to convert given number of days into years, weeks and days Get number of days from user Divide number of days with…

## [C/C++] Swap 2 Variable Without Using Third Variable

Program to swap 2 variable values without using third variable Add both variables in 2nd variable subtract 1st from 2nd and store it in…

## [C/C++] Program to Swap 2 Variable Using Third Variable

Program to swap 2 variable values using third variable Store value of 1st variable in third variable that is temporary Store value of…

## [C/C++] Program to Find The Area of Circle

Program to find area of circle using radius or diameter 2 functions one will calculate and return area of circle by multiplying…

## [C/C++] Program to Find The Area of Any Triangle

Heron's Formula for the area of a triangle(Hero's Formula) A method for calculating the area of a triangle when you know the…

## [C/C++] Program to Find Greatest Among Three Numbers

This program shows the greatest number between three numbers using if-else-if statement. It takes three numbers as input from user and output…

## [C/C++] Program to Find The Perimeter And Area of a Rectangle

Formulas: Area of rectangle: height*width Perimeter of rectangle: 2*(height+width) C Code #include<stdio.h> #include<conio.h> void main() { float width,height,area,perimeter; printf("Enter Width of Rectangle:…

## [C/C++] Program to Convert Decimal Number in Binary

A simple c and c++ program to convert a decimal number into binary number system. C/C++ program to convert base ten number…

## [C/C++] Program to Find Factorial Using All Loops

A simple c and c++ program to find factorial of given number. Factorial of a number is product of all previous number from…

## [C/C++] Program to Convert Time in 12 OR 24 Hours

A simple c and c++ program to convert 12 hours time into 24 hours and 24 hours time in 12 hours and…
×