j

Monday, 2 November 2015

Write a program that take input user name, address and age in year and print them, also convert the age into days




#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
char name[30],add[50];
int age,day;
cout<<"Enter your name ::";
cin>>name;
cout<<"Enter your address ::";
cin>>add;
cout<<"Enter your age in year ::";
cin>>age;
day=age*365;
cout<<name<<endl;
cout<<add<<endl;
cout<<age<<endl;
cout<<"Age in year "<<day;
getch();
}

Subscribe to this Blog via Email :