Computer Science, asked by Sengchoop, 11 months ago

to accept the value of A, B, C and print their sum​

Answers

Answered by Anonymous
2

__________________________________________________________

Explanation part:

//Using BlueJ

//Using utilization process

import java.util.*;

public class Sum

{

public static void main(String args[])

{

//for taking input scanner class necessary here

Scanner in = new Scanner(System.in);

int A,B,C, sum;

//Declaring the values

System.out.println("Enter the values of the numbers");

A = in.nextInt();

B = in.nextInt();

C=in.nextInt();

sum=(A+B+C);

System.out.println("The sum is="+sum);

}

}

/* Remember that java s a case sensitive language. In this language maintaining of capital and small letter and proper punctuation after the ending of each line is mandatory. "/*,*\; //; //*" are used to state the comments for further remembering the programming steps which are not checked during the compilation of program.*\

//follow the next part for only the programming which is enough to run the program.

____________________________________________________________________________________________________________________

import java.util.*;

public class Sum

{

public static void main(String args[])

{

Scanner in = new Scanner(System.in);

int A,B,C, sum;

System.out.println("Enter the values of the numbers");

A = in.nextInt();

B = in.nextInt();

C=in.nextInt();

sum=(A+B+C);

System.out.println("The sum is="+sum);

}

}

________________________________________________________

Similar questions