MUstar

IoT C언어 0424 - 7-3

Apr 24th, 2017
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void print_char(char ch, int cnt);
  4.  
  5. int main(void)
  6. {
  7.     print_char('@',5);
  8.  
  9.     return 0;
  10. }
  11.  
  12. void print_char(char ch, int cnt)
  13. {
  14.     int i;
  15.     for(i=0;i<cnt;i++)
  16.     {
  17.         printf("%c",ch);
  18.     }
  19.     printf("\n");
  20. }
Add Comment
Please, Sign In to add comment