Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Keyboard input an integer of 1~80 and assign it to the variable n, which requires printing n characters from the screen.
Keyboard input an integer of 1~80 and assign it to the variable n, which requires printing n characters from the screen.
# include & ltstdio.h & gt

int main()

{

int n,I;

scanf("%d ",& ampn);

for(I = 0; I & ltn;; ++i)

putchar(i%2? '#':'*');

Returns 0;

}