Program to convert given number of days into years, weeks and days Get number of days from user Divide number of…
Browsing: cpp programs
Program to swap 2 variable values without using third variable Add both variables in 2nd variable subtract 1st from 2nd and store…
Program to swap 2 variable values using third variable Store value of 1st variable in third variable that is temporary Store…
Program to find area of circle using radius or diameter 2 functions one will calculate and return area of circle…
Heron’s Formula for the area of a triangle(Hero’s Formula) A method for calculating the area of a triangle when you…
This program shows the greatest number between three numbers using if-else-if statement. It takes three numbers as input from user…
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…
A simple c and c++ program to convert a decimal number into binary number system. C/C++ program to convert base…
A simple c and c++ program to find factorial of given number. Factorial of a number is product of all previous…
A simple c and c++ program to convert 12 hours time into 24 hours and 24 hours time in 12…