fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int num,cnt;
  5.  
  6. printf("数値を入力:");
  7. scanf("%d",&num);
  8.  
  9. cnt=0;
  10.  
  11. while(cnt<num){
  12. printf("*");
  13.  
  14. cnt=cnt+1;
  15.  
  16. }
  17.  
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 5320KB
stdin
5
stdout
数値を入力:*****