Sunday, March 24, 2013

Age in Days Calculator - C Language

TASK:
Write a program that takes age in years as input from the user and calcuates the age in days.

INPUT:

#include<stdio.h>
#include<conio.h>
void main(void)
{
clrscr();
int a,b,c;
printf("                   Age in Days Calculator");
printf("\n\nEnter your age in years:");
scanf("%d", &a);
b=365 ;
c=a*b;
printf("Your age in days is:%d", c);
printf("\n\nProgram Designed by: Geektist - (Shahrukh Hussain)");
getche();
}

OUTPUT:



No comments:

Post a Comment