MUstar

IoT C언어 0424 - 7-3

Apr 24th, 2017
28
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data