InterviewSolution
Saved Bookmarks
| 1. |
Write a Program to find sum and average of three numbers. Take any three numbers. |
| Answer» CLASS number{public static VOID .......{int a,b,c,s,avg;System.out.println("Enter the numbers");a=in.nextInt();b=in.nextInt();c=in.nextInt();s=a+b+c;avg=s/3;System.out.println("The sum of numbers:"+s);System.out.println("The AVERAGE of numbers:"+avg);}}...*Hope it will HELP you* | |