Answer to Question #273643 in Java | JSP | JSF for Rifumo

Question #273643

By making use of pseudocode, show the programming statements that will

accept two values from a user. These two values should be added together, and

the result displayed on the screen


1
Expert's answer
2021-11-30T18:41:28-0500


package pseudocode;


import java.util.Scanner;




public class Pseudocode {


   
    public static void main(String[] args) {
        Scanner scan  = new Scanner(System.in);
        System.out.println("Enter the first number");
        int first =  scan.nextInt();
        System.out.println("Enter the second number");
        int second =  scan.nextInt();
        System.out.println("The sum of the numbers is: "+(second+first));
        
        
    }
    
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS