Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - int i; void prt( ) { for(i=5;i<8;i++) printf("%c",'*'); printf("\t"); } main( ) { for( i=5;i<=8;i++)
int i; void prt( ) { for(i=5;i<8;i++) printf("%c",'*'); printf("\t"); } main( ) { for( i=5;i<=8;i++)

int i; define an integer variable

void prt( )//Define a function

{

for(i=5 ;i<8;i++)//Loop, i from 5 to 8

{

printf("%c",'*');//Print a "*"

printf("\t"); //There is a Tab key interval between the two * signs

}//I personally think that we should add parentheses here, because this is Add a distance between the two * signs. If you don't add it, you will have to print the three * signs first and then add the space. This is not quite right

}

main( ) // The main function is below, I don’t need to explain it, it’s the same as above

{ for(i=5;i<=8;i++)