Posted on 1998-07-27
I have two write two very simple caculations (classes), but I am from the VB Area, so my Java is to say the least..the ****s. I am using JDK 1.1.6, in an MS-DOS environment. I write my code in notepad then save it as a *.java file, then run javac filename.java
I know there is a better way, but for this purpose, I have to do it this way.
Anyway here are my two (simple) questions:
I need to write a little program that computes and prints the squares of the integers from 5 to 15.
Secondly I need write a second little program to calculate the sqaures and cubes of ten consecutive numbers.
Thanks in advance