Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Eukleides
#include <stdio.h> int main() { unsigned int u = 0, w = 0; printf("Zadej dve prirozena cisla a ja spocitam jejich NSD: \n"); if( scanf("%u%u", &u, &w) != 2) { printf("Zadal jsi chybne vstupy, konec programu.\n"); return 1; } if( (u == 0) || (w == 0) ) { printf("Zadal jsi nulove hodnoty, konec programu.\n"); return 2; } printf("Zadana cisla jsou: %u %u\n", u, w); while(w > 0) { int r = u % w; u = w; w = r; } printf("NSD je: %u\n", u); return 0; } //https://app.diagrams.net/ - diagram maker
run
|
edit
|
history
|
help
0
inicializace struktury
scitani matic
OBsah obdelniku
kamo discriminant oprava
Look at the bleeping warnings
vyuziti struktury
amal
Empty struct
PÅ™estupný rok
Herout (67) - 1