Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
464 B
0
Indexable
Never
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);
        
    }
    
}
Leave a Comment