summaryrefslogtreecommitdiff
path: root/5p22.cpp
blob: 9bc9a0fa8e8ee54e2c5db893162087255f99e035 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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;
}