1870: Print the Maximum of Integers for 4 types
内存限制:128 MB
时间限制:1.000 S
评测方式:文本比较
命题人:
提交:73
解决:29
题目描述
There are four types for integers,byte,short,int,long;every type has different sizes,for example,byte is 8-bit,so its maximum value is 127.
the problem is to output the maximum of four types according to the order(byte,short,int,long)
you can do it in two steps:
1)first,you should define four variables named a,b,c,d,then assign the corresponding maximum to them.
for instance, byte a=127
2)output them according to the sample
输入
No input is required
输出
see the sample output
提示
you can refer to Table 2.1 in the page 45 of your textbook
note I will check your code!