C Program Age Years to Days

By | March 6, 2020

C Program Age Years to Days

#include <stdio.h>
int main()
{
  
  int years, days;

  printf("Enter Your Age in Years=");
  scanf("%d", &years);

  days = years * 365;

  printf("%d Years are equal to %d Days", years, days);

  return 0;
}

Output

Enter Your Age in Years=45
45 Years are equal to 16425 Days
Press Enter to return to Quincy…

Loading

Leave a Reply

Your email address will not be published. Required fields are marked *