c programming 2 - printf("%d is not a leap...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 #include <stdio.h> int main() { int year, sum1, sum2, sum3 printf("Enter a year:") sum1 = year % 4 sum2 = year % 400 sum3 = year % 100
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: printf("%d is not a leap year\n", year) else printf("%d is a leap year\n", year) system("pause") return 0 }...
View Full Document

This document was uploaded on 02/13/2008.

Ask a homework question - tutors are online