package cdw.java1999;public class Example404 { public static int sum(int a,int b,int c){ int sum=0; sum=a+mul(b, c); return sum; } public static int mul(int a,int b){ return a*b; } public static void main(String[] args){ int a,b,c; a=Integer.parseInt(args[0]); b=Integer.parseInt(args[1]); c=Integer.parseInt(args[2]); int i = sum(a,b,c); System.out.println(a+"+"+b+"*"+c+"="+i); }}
添加回答
举报
0/150
提交
取消