Question

$ Project 1 x > Project1.pdf X Experimental COVID-19 treatmer x C Computer Science question Che X + File C:/Users/sarah/Downl

0 0
Add a comment Improve this question Transcribed image text
Answer #1
public class SquaresAndCubes {

    public static void main(String[] args) {
        System.out.println("Number       Square      Cube");
        System.out.println("=============================");
        for (int i = 1; i <= 10; i++) {
            System.out.printf("%6d%13d%10d\n", i, i * i, i * i * i);
        }
    }
}

Number Square Cube 1 1 8 1 4 9 16 27 64 125 000 vau AWN 25 36 49 216 343 64 512 81 9 10 729 1000 100

Add a comment
Know the answer?
Add Answer to:
$ Project 1 x > Project1.pdf X Experimental COVID-19 treatmer x C Computer Science question Che...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT