Problem1120--正方形面积

1120: 正方形面积

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 32  Solved: 21
[Submit] [Status] [Web Board] [Creator:]

Description

根据读入的正整数值,输出其正方形的面积。

本题的焦点是如何处理输入,下面给出了程序的框架。

#include <stdio.h>

int main(int argc, char *argv[])
{
    int x;
    while (scanf("%d", &x)!=EOF) {
        print x*x;
    }
    return 0;
}

Input

输入数据含有不超过50个的正整数(1≤n≤10000),每个正整数之间以空格隔开。

Output

每次读入一个正整数,便输出其正方形的面积数,每个面积数应回车。

Sample Input

1 3 5 7

Sample Output

1
9
25
49

Source/Category