cprimer_study/c05_expression/squares.c
2023-12-08 06:16:32 +08:00

15 lines
217 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* squares.c - 计算120的平方 */
#include <stdio.h>
int main(void)
{
int num = 1;
while (num < 21)
{
printf("%4d\t%6d\n", num, num * num);
num = num + 1;
}
return 0;
}