Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- ///////////////////////////////////////
- void foo(int n)
- {
- printf(" ");
- for(int i = 0; i < n; i++)
- {
- printf("*");
- }
- printf("\n");
- }
- ///////////////////////////////////////
- int main()
- {
- for(int i = 1; i < 10; i++)
- {
- foo( i);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement