Arithmetic operators

Nasza ocena:

3
Wyświetleń: 427
Komentarze: 0
Notatek.pl

Pobierz ten dokument za darmo

Podgląd dokumentu
Arithmetic operators - strona 1

Fragment notatki:

Arithmetic operators • +, -, *, /, % • Example: a year is a leap year if it is divisible by 4 but not by 100, except that years divisible by 400 are leap years. if ((year%4 == 0 && year%100 != 0) || year%400 == 0) printf("%d is a leap year\n", year); else printf("%d is not a leap year\n", year); … before we analyse this formula, let us learn something about calendars ... zobacz całą notatkę

Komentarze użytkowników (0)

Zaloguj się, aby dodać komentarz