Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (term1.monat!=term2.monat)
- {
- if (term1.monat==13)
- {
- term1.jahr=term1.jahr+1;
- term1.monat=1;
- }
- if (term1.monat==2)
- {
- abstand=abstand+28;
- term1.monat=term1.monat+1;
- }
- if ((term1.monat==1)||(term1.monat==3)||(term1.monat==5)||(term1.monat==7)||(term1.monat==8)||(term1.monat==10)||(term1.monat==12))
- {
- abstand=abstand+31;
- term1.monat=term1.monat+1;
- }
- if ((term1.monat==4)||(term1.monat==6)||(term1.monat==9)||(term1.monat==11))
- {
- abstand=abstand+30;
- term1.monat=term1.monat+1;
- }
- }
Add Comment
Please, Sign In to add comment