1//print max value
2int currVal;
3int maxNum;
4scanf("%d", &currVal);
5maxNum = currVal;
6
7 while (currVal > 0)
8 {
9 if (currVal > maxNum) {
10 maxNum = currVal;
11 }
12 scanf("%d", &currVal);
13 }
14printf("Max val: %d", maxNum);