Computer Science, asked by aratrika79, 1 year ago

Write a java program to accept a number.If the number is positive display its square.If the number is negative display its cube.PLS USE SCANNER CLASS...ANY DOUBT REGARDING THE QUESTION...PLS MESSAGE IN THE INBOX...BUT PLS DON'T GIVE UR DOUBTS IN ANSWER

Answers

Answered by vivardoshi100
0
this is the answer for the question
Attachments:

vivardoshi100: both pictures r same i send it twice because u should not find it clear
vivardoshi100: my sister answered this question not me
aratrika79: the question was square for positive number and cubes for negative number....this is not the answer
vivardoshi100: sry then anyway she tried for the program
vivardoshi100: really sorry we couldn't answer ur question
Answered by llMissHaseenall
0

Answer:

here is your answer hope it helpfull

Similar questions