Home > database >  For help, why my program finally output is two squares
For help, why my program finally output is two squares

Time:09-18

# include

# define NUM 3
Int main ()
{
Struct persen
{
Char name [20].
Char phone [10].
};
Struct persen man (NUM);
int i;
for(i=0; I {
Printf (" input name: \ n ");
The scanf (" % s ", & man [I] name);
Printf (" input phone: \ n ");
The scanf (" % s ", & man [I] phone);
}
Printf (" \ tname t \ \ t \ \ t tphone \ n \ n ");
for(i=0; I {
Printf (" % s % s \ n "20 20, man [I]. Name, man [I] phone);
}
while(1);
return 0;
}
  • Related