Output Squared Number


Submit solution

Points: 50 (partial)
Time limit: 3.0s
Memory limit: 64M

Authors:
Problem type

題目說明

輸入整數(int)後輸出該整數之平方 要可以連續輸入多個數字直到輸入-1

若輸入為-1輸出bye! 並結束程式(System.exit(0);)

輸入

整數

輸出

整數之平方

sample input1

3
15
-1

sample output1

9
225
bye!

Comments

There are no comments at the moment.