正在加载图片...
上海交通大学交大密西根 ·联合学院一 1811 UM-SJTU Joint Institute University of Michigan Shanghal Jiao Tong University The Add2Integers Program int main (void) AddIntConsoleT console; int int1,int2,intSumj console.printLine (This program will compute the sum ofn'); console.printLine (two integers specified by the user.n'in'); int1 console.readInt (Please input the first integer") int2 console.readInt ("Please input the second integer"); intSum =int1+int2; console.disp (int1,int2,intSum); nl n2 total retur 0; 17 25 42 This program will computer the sum of Two integers specified by the user Please input the first integer 17 Please input the second integer 25 17+25=42Add2Integers The Add2Integers Program The Add2Integers Program This program will computer the sum of Two integers specified by the user Please input the first integer 17 + 25 = 42 Please input the second integer n1 n2 total 17 25 42 17 25 n1
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有