#include int main(void) { char ch; int num, i; printf("Enter a character and a integer:\n"); while((ch = getchar()) != '\n') { scanf("%d", &num); for(i = 0; i < num; ++i) putchar(ch); putchar('\n'); printf("Enter an another pair.Empty line to quit"); } return 0; }
怪盗饭团
莫还生
杰伦窗外的小麻雀
相关分类