smt
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user