Square of a Number
CodeChefOpen on judge ↗
Problem Statement Write a program that accepts numbers and prints their squares. Input - First line contains the number of integers, N. - The next N lines which follow each have an integer. Output For each integer, output one new line which contains the square of that integer. Constraints - 1 ≤ N ≤ 20 - 0 ≤ every integer ≤ 100 Sample Input 7 0 1 2 3 4 5 10 Sample Output
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start