j

Tuesday, 3 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<stdio.h>
#include<conio.h>
void main()
{
clrscr();
char name[30],add[50];
int age,day;
printf("Enter your name ::");
scanf("%s",&name);
printf("Enter your address ::");
scanf("%s",&add);
printf("Enter your age in year ::");
scanf("%d",&age);
day=age*365;
printf("%s\n",name);
printf("%s\n",add);
printf("%d\n",age);
printf("Age in year %d",day);
getch();
}

Subscribe to this Blog via Email :