Advertisement
Guest User

Untitled

a guest
Feb 17th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int i,j,input;
  5. char a='*',b=' ';
  6. scanf("%d",&input);
  7. printf("%c\n",a);
  8. for(i=0;i<input;i++)
  9. {
  10. printf("%c",a);
  11. for(j=0;j<i;j++)
  12. {
  13. printf("%c",b);
  14. }
  15. printf("%c",a);
  16. printf("\n");
  17. }
  18. for(i=0;i<=input;i++)
  19. {
  20. printf("%c",a);
  21. }
  22.  
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement