Computer Science, asked by SumitiChaudhary7068, 7 months ago

Write a programs to print the sum of any three numbers class 7

Answers

Answered by Anonymous
0

Answer:

import java.util.*;

public class sum{

public static void main(String []args){

Scanner in = new Scanner(System.in);

System.out.println("Enter three numbers");

double a,b,c;

a = in.nextDouble();

b = in.nextDouble();

c = in.nextDouble();

double sum = a+b+c;

System.out.println(sum);

}

}

Similar questions