Untitled
unknown
plain_text
2 years ago
464 B
8
Indexable
import java.util.Scanner;
public class fahim {
public static void main (String[] args)
{
Scanner s;
s = new Scanner(System.in);
int a,b,c, sum;
System.out.println("Enter 1st number");
a= s.nextInt();
b= s.nextInt();
c= s.nextInt();
sum= a+b+c;
String x;
x="the total sum is " +sum;
System.out.println(x);
}
}
Editor is loading...
Leave a Comment