Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void print_char(char ch, int cnt);
- int main(void)
- {
- print_char('@',5);
- return 0;
- }
- void print_char(char ch, int cnt)
- {
- int i;
- for(i=0;i<cnt;i++)
- {
- printf("%c",ch);
- }
- printf("\n");
- }
Add Comment
Please, Sign In to add comment