1.

Write a function to input 2 numbers and print them in java​

Answer»

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();



Discussion

No Comment Found