Thursday 23 January 2014

Filled Under: ,

/* WAP to Print the age of person in days */

/* WAP to Print the age of person in days  */

#include<stdio.h>
#include<conio.h>
main()
{
    int age,days;
    printf("Enter your age:");
    scanf("%d",&age);
    days=age*365;
    printf("You are %d days old.\n",days);
    getch();
}

0 comments:

Post a Comment