Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(i=a1 ; i<a2 ; i++){
- for(contMES=m1-1 ; contMES<12 ; contMES++){
- if(contMES==2){
- if(i%4==0 && (i%100!=0 || i%400==0)){
- somaM+=29;
- }else{
- somaM+=28;
- }
- }else if(contMES==1 || contMES==3 || contMES==5 || contMES==7 || contMES==8|| contMES==10|| contMES==12){
- somaM+=31;
- }else if(contMES==4 || contMES==6 || contMES==9 || contMES==11){
- somaM+=30;
- }
- }
- m1=1;
- }
Add Comment
Please, Sign In to add comment