Program that prints to calculate the age in days.

Program that prints to calculate the age in days.

Program that prints to calculate the age in days.

Object: Write a program that prints to calculate the age in days by using the formula:  days = years * 365. C++ projects for beginners with source code

Code:

#include<iostream>

#include<conio.h>

#include<math.h>

using namespace std;

void main()

{

       int age,days;

       cout<<“Please Enter Your Age: \n\n”;

       cin>>age;

       days=age*365;

       cout<<“\nYour Age in Days: “<<days;

       getch();

}

 

Output:

Program that prints to calculate the age in days.

M.A Siddiqui

Hi, I am M.A Siddiqui. I'm a Computer Science Student, In this website, I'm teaching you Multiple languages and provides Projects and other Subjects Notes.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *