Computer Science, asked by fusernames, 9 months ago

WAP to accept three numbers and print their sum and product. ​

Answers

Answered by Anonymous
4

Answer:

import java.util.*;

class Sum_product

{

public static void main()

{

Scanner sc=new Scanner(System.in);

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

int a=sc.nextInt();

int b=sc.nextInt();

int c=sc.nextInt();

System.out.println("Sum of numbers="+(a+b+c));

System.out.println("Product of numbers="+(a*b*c));

}

}

Thank you

PLS MARK ME BRAINLIEST

Answered by ShanJoshi11972
1

Explanation:

class abc

{//opening class

public static void main ( int a, int b, int c )

{//opening main method

d = a+b+c

e = a*b*c

System.out.print (sum is + 'd')

System.out.print (product is + 'e')

{ //closing main method

{//closing class

Similar questions