14 lines
248 B
C
14 lines
248 B
C
/* 这段程序有错误 */
|
|
#include <stdio.h>
|
|
int main(void)
|
|
{
|
|
int n, int n2, int n3;
|
|
|
|
/* 该程序有多处错误
|
|
n = 5
|
|
n2 = n * n;
|
|
n3 = n2 * n2;
|
|
printf("n = %d, n squared = %d, n cubed = %d\n", n, n2, n3)
|
|
|
|
return 0;
|
|
}
|