Anzeige
Lab06_C Write a Java program using Method that will accep.pdf
Nächste SlideShare
LanguageType Java inheritance polymorphism Assume that the.pdfLanguageType Java inheritance polymorphism Assume that the.pdf
Wird geladen in ... 3
1 von 1
Anzeige

Más contenido relacionado

Más de adityacommunication1(20)

Anzeige

Lab06_C Write a Java program using Method that will accep.pdf

  1. Lab06_C: Write a Java program (using Method) that will accept a number as input from the keyboard and calculate the Cube of a number. (1) If num is less than 0 then the program should print "Number cannot be less than 0" and the program will end. (2) if num is equal or greater than 0 then the program should use a Method to calculate and print out the Cube as follows: The formula to calculate
Anzeige