为什么要放两个getchar ( );语句才能让光标暂时停止?
代码如下:程序代码:
# include <stdio.h> int main (void) { int n,n1,n2,n3; printf ("请输入一个数字,我们会给出它的四次方数。\n"); scanf ("%d",&n); n1 = 0; n1 = n; n2 = n1*n1; n3 = n2*n2; printf ("%d的四次方数是%d\n",n,n3); getchar (); getchar (); return 0; }