Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Thanks for the 133 team flashes this year!
https://leetify.com/2023/76561199101324123#friends
+REP, thanks for the trade!
int main () {
int a, b, c, k, p, q, M, d, N, e, jahr, ostern, x;
//Abfrage
printf("Fuer welches Jahr soll das Osterdatrum berechnet werden?\n");
scanf("%i", &jahr);
x = 1;
//Berechnung
while (x<=10) {
a = jahr % 19;
b = jahr % 4;
c = jahr % 7;
k = jahr / 100;
p = (8*k + 13) / 25;
q = k / 4;
M = (15+ k - p - q) % 30;
d = (19*a + M) % 30;
N = (4 + k - q) % 7;
e = (2*b + 4*c + 6*d + N) % 7;
ostern = (22 + d + e);
//Ausgabe
if (ostern <= 31) {
printf("Ostern ist am %2i. Maerz %i\n", ostern, jahr);
} else {
ostern = ostern - 31;
printf("Ostern ist am %2i. April %i\n", ostern, jahr);
}
x = x + 1;
jahr = jahr + 1;
}
return 0;
}
Du geiler Bock!