Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void main()
- {
- int a,year,month,days;
- printf("enter day\n");
- scanf("%d", &a);
- year=a/365;
- month=a%30;
- days=(a%30)%30;
- printf("%d shanim and %d hodashim and %d yamim\n",year,month,days);
- }
Add Comment
Please, Sign In to add comment