Computer Science, asked by anshbhatia1972, 8 hours ago

WAP to find the sum of three numbers in java?​

Answers

Answered by riya4491
0

Answer:

Sum of Three Numbers in Java

Sum of Three Numbers in Javaimport java.util.Scanner;

Sum of Three Numbers in Javaimport java.util.Scanner;public class SumOfNumbers5.

Sum of Three Numbers in Javaimport java.util.Scanner;public class SumOfNumbers5.{

Sum of Three Numbers in Javaimport java.util.Scanner;public class SumOfNumbers5.{public static void main(String args[])

Sum of Three Numbers in Javaimport java.util.Scanner;public class SumOfNumbers5.{public static void main(String args[]){

Sum of Three Numbers in Javaimport java.util.Scanner;public class SumOfNumbers5.{public static void main(String args[]){int x, y, z, sum;

Sum of Three Numbers in Javaimport java.util.Scanner;public class SumOfNumbers5.{public static void main(String args[]){int x, y, z, sum;Scanner sc = new Scanner(System.in);

Sum of Three Numbers in Javaimport java.util.Scanner;public class SumOfNumbers5.{public static void main(String args[]){int x, y, z, sum;Scanner sc = new Scanner(System.in);System.out.print("Enter the first number: ");

Answered by ItzMeSam35
1

import java.util.Scanner;

public class SumOfThree

{

public static void main (String args [])

{

double a , b , c , sum ;

Scanner sc=new Scanner (System.in);

System.out.print("Please Enter The Three Values: ");

a = sc.nextDouble();

b = sc.nextDouble();

c = sc.nextDouble();

sum = a + b + c ;

System.out.println("Total : "+sum);

sc.close();

}

}

Similar questions