diff options
Diffstat (limited to '5p22.cpp')
-rw-r--r-- | 5p22.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/5p22.cpp b/5p22.cpp new file mode 100644 index 0000000..9bc9a0f --- /dev/null +++ b/5p22.cpp @@ -0,0 +1,31 @@ +#include <iostream> + +/* + * + * 5.22 + * + * + */ + +int get_size() { + + return 2; +} + +int main () { + + begin: + int sz = get_size(); + if (sz <= 0) { + goto begin; + } + + for(int sz1 = get_size() ; sz1 <= 0 ; sz1 = get_size()) {} + + int sz2 = get_size(); + while(sz2 <= 0) { + sz2 = get_size(); + } + + return 0; +} |