Writa a program to find addiction of 3 numbers using Scanner class
Answers
Answered by
0
import java.util.*;
class addition
{
public static void main(String args[]);
{
Scanner sc = new Scanner(System.in);
System.out.println("Enter three numbers");
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int add = a+b+c;
System.out.println("The sum of"+a+b+c+ "is:"+add);
}
}
I hope I could help you out.
Similar questions