Professional Documents
Culture Documents
Question#1:-Write A Program To Input Your Name, Address and Age To Print It On Screen
Question#1:-Write A Program To Input Your Name, Address and Age To Print It On Screen
Question#1:-Write A Program To Input Your Name, Address and Age To Print It On Screen
#include<iostream.h>
#include<conio.h>
void main()
{clrscr();
char a,b,c;
cout<<"Name :Abdul Wahab Tariq"<<a<<endl;
cout<<"Adress :House 24 Block C Zaib Colony
Gujrat"<<b<<endl;
cout<<"Age :19 years old"<<c<<endl;
getch();
}
R.N:-12-ME-36 NAME:-ABDUL WAHAB TARIQ
#include<iostream.h>
#include<conio.h>
void main()
{clrscr();
long int year,month,day,hour,minute,second;
cout<<"enter age in years=";
cin>>year;
month=12*year;
day=30*month;
hour=24*day;
minute=60*hour;
second=60*minute;
cout<<"age in month="<<month<<endl;
cout<<"age in day="<<day<<endl;
cout<<"age in hour="<<hour<<endl;
cout<<"age in minute="<<minute<<endl;
cout<<"age in second="<<second<<endl;
getch();
}
R.N:-12-ME-36 NAME:-ABDUL WAHAB TARIQ
R.N:-12-ME-36 NAME:-ABDUL WAHAB TARIQ
#include<iostream.h>
#include<conio.h>
void main()
{clrscr();
float f,c;
cout<<"temprature in fahrenheit=";
cin>>f;
c=5*(f-32)/9;
cout<<"tenprature in celcius="<<c;
getch();
}
R.N:-12-ME-36 NAME:-ABDUL WAHAB TARIQ
#include<iostream.h>
#include<conio.h>
void main()
{
float r,d;
cout<<"enter amount in rupees=";
cin>>r;
d=r/99;
cout<<"amount in dollars="<<d<<endl;
getch();
}