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

Which letter has rotational symmetry?
I want a fairy tale, history or an autobiography written in Spanish and containing the present tense, past tense, past tense and future tense..I just need a sma
Is it true or false that wave interference only occurs with transverse waves?
name and location of state capitol of Ohio
the difference between two positive integers is 40. one integer is three times as great as the other. find the integer.
how old are you?. im taking a survey... thanks
what the break in the lithosphere called
Explain the major benefits of the evolution of sexual reproduction.
Mary's father has five daughters Nana, Nene, Nini, Nono, What is the name of the fifth daughter?
Find r if 2700=2200(1+r)ˆ5 ( ˆ5 is the exponent for 5 )