Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int _tmain(int argc, _TCHAR* argv[])
- {
- int days;
- int weeks;
- int totalDays;
- printf("Please enter the number of days\n");
- scanf("%d,&totalDays");
- weeks = totalDays /7;
- days = totalDays %7;
- printf("Weeks %d\n", weeks);
- printf("Days %d\n", days);
- return 0;
- }
Add Comment
Please, Sign In to add comment