morriskaleb06 morriskaleb06
  • 16-09-2022
  • Computers and Technology
contestada

write a complete main that will input a decimal number, double it and display the results

write a complete main that will input a decimal number double it and display the results class=

Respuesta :

NotAStudentxD NotAStudentxD
  • 16-09-2022

Answer:

No sure what language you want but since I am best with Java.

class Main {

 public static void main(String[] args) {

   Scanner input = new Scanner(System.in);  // Create a Scanner object

   System.out.println("Enter Number");

double number01 = input.nextLine();  // Read user input

double multi = number01 * 2;

   System.out.println("Number is " + multi);  // Output user input

}

}

Explanation:

Answer Link

Otras preguntas

How many miles separate Houston Ogden
Can you estimate253,495-48,617
A fruitstand has 18 red Apple just 40% of the total apples understand how many apples are there in the stand
If vertex of this parabola is (-5,4) what’s the equation
what is the value of x?
A standard cell potential of which value describes a spontaneous redox reaction? A: 0.0 V B: +0.34 V C: –1.66 V D: –0.71 V Could really use some help! Thanks!
Describe the different oceanic zones and the organisms that live in these? Do they need special adaptations to live in these zones?
Factor: x2 - 11x + 30
Alma is considering buying her first home. The house she is interested in buying is priced at $150,000. Alma can put down a $20,000 payment, and she qualifies f
Blank to the power of 1/2 equals 1