#include <stdio.h> #define DAYSINWEEK 7 void main() { int number_days, year, week, days; printf("Enter Number Of Days :\n"); scanf("%d",&number_days); year = number_days/365; week = (number_days % 365)/DAYSINWEEK; days = (number_days%365) % DAYSINWEEK; printf ("%d Days Is equivalent To %d Years, %d Weeks And %d Days\n", number_days, year, week, days); }
Most Popular
-
Befunge: Developed by : Chris Pressey Year: 1993 Stack-based, reflective, esoteric programming language.
-
-
The list below is an unordered list. You can pick any book you like, and some of the books don’t even cover a programming language at all,...
-
Recursion happens when function calls itself directly or indirectly.
Copyrights © 2016 Codzya. Powered by Blogger.
Thursday, May 12, 2016
Subscribe to:
Post Comments (Atom)
Recent
Weekly
-
Befunge: Developed by : Chris Pressey Year: 1993 Stack-based, reflective, esoteric programming language.
-
-
The list below is an unordered list. You can pick any book you like, and some of the books don’t even cover a programming language at all,...
-
Recursion happens when function calls itself directly or indirectly.
-
1- The C Programming Language This book is a comprehensive guide to the finalized ANSI standard C language programming. It has b...
Comment
Get this Recent Comments Widget
!->
0 Comment to "Convert Number Of Days To Number Of Years, Weeks and Days"
Post a Comment