write a program using input stream reader to find the cube of a given no.
Answers
Answered by
0
Answer:
PLEASE PLEASE PLEASE MARK ME BRAINLEIST
Step-by-step explanation:
SIMPLE JAVA PROGRAM THAT SQUARES AND CUBES A USERS INPUT NUMBER.
i) ACCEPT NUMERIC INPUT FROM THE USERS (INTEGER VALUE) .
2 PRINT OUT THE SQUARE AND CUBE OF THE
NUMBER ENTERED .
3 MAKE SURE THAT THE NUMBER IS > 0.
4 REPEAT THE ABOVE THREE TIMES.
5 IF THE NUMBER ENTERED IS <=0 THEN END THE PROGRAM, TELLING THE USER WHY.
Similar questions