This commit is contained in:
2024-01-22 14:41:15 +01:00
parent a00408d732
commit df2701109f
15 changed files with 110 additions and 71 deletions
+7 -7
View File
@@ -3,14 +3,14 @@
//#define DOWHILE
int calc(){
int calc() {
char pokracovat = 'a';
#ifndef DOWHILE
#ifndef DOWHILE
while (pokracovat == 'a') {
#endif
#ifdef DOWHILE
#endif
#ifdef DOWHILE
do {
#endif
#endif
double a = 0;
double b = 0;
@@ -46,9 +46,9 @@ int calc(){
printf("Vysledok %f %c %f je: %f.\nPrajete si pokračovať(a/n)?\n", a, operacia, b, vysledok);
scanf("%s", &pokracovat);
}
#ifdef DOWHILE
#ifdef DOWHILE
while(pokracovat == 'a');
#endif
#endif
return 0;
}