WAP in java to input two nos and add them. do this with importing scanner
Answers
Answered by
3
Answer:
Full Code
import java. util. Scanner;
public class Inputfunctions {
public static void main(String[] args) {
Scanner readme = new Scanner(System. in);
System. out. println("Enter Two Numbers (Press Enter after each):");
//two variables to hold numbers.
double n1, n2, n3;
n1 = readme. nextDouble();
Similar questions