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