56: scanf( “%d”, &selection );
57:
58: }while ( selection < 1 || selection > 4 );
59:
60: return selection;
61: }1 - Get a signed decimal integer
2 - Get a decimal floating-point number
3 - Get an unsigned decimal integer
4 - QuitEnter a selection:
1Enter a signed decimal integer (e.g. -123)
-1231 - Get a signed decimal integer
2 - Get a decimal floating-point number
3 - Get an unsigned decimal integer
4 - Quit
Enter a selection:
3
Enter an unsigned decimal integer (e.g. 123)
321
1 - Get a signed decimal integer
2 - Get a decimal floating-point number
3 - Get an unsigned decimal integer
4 - Quit
Enter a selection:
2
Enter a decimal floating point number (e.g. 1.23)
1231.123
1 - Get a signed decimal integer
2 - Get a decimal floating-point number
3 - Get an unsigned decimal integer
4 - QuitEnter a selection:
4Your values are: int: -123 float: 1231.123047 unsigned: 321160 Day 7LISTING7.3 continuedINPUT/
OUTPUT11 448201x-CH07 8/13/02 11:20 AM Page 160