How to Convert Given Days to Years,Weeks and Days in C Programming | C Programming Examples - 14

How to Convert Given Days to Years,Weeks and Days in C Programming | C Programming Examples - 14

Write a C program to input number of days from user and convert it to years, weeks and days. How to convert days to years, weeks and days in C programming. Logic to convert days to years, weeks and days in C program.

We will first take number of days as input from user using scanf function then convert to Days, Weeks, Months and Years using following conversion equations.

  • 1 Year = 365 Days
  • 1 Month = 30 Days
  • 1 Week = 7 Days

This is a very simple program for beginners to understand how if-else condition works and how to check leap year in c programming language. 

C Programming Examples:

1. Write a C Program to Convert Given Days to Years,Weeks and Days

2. C program to Convert Given Days to Years,Weeks and Days

3. How to Convert Given Days to Years,Weeks and Days in C Programming

0 Response to How to Convert Given Days to Years,Weeks and Days in C Programming | C Programming Examples - 14

Post a Comment