Advertisement
ahmad_zizo

Untitled

Dec 25th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2. int main ()
  3. {
  4. int i,j,y,t;
  5. char plot[67][11];
  6. for(i=0; i<67; i++)
  7. for(j=0; j<11; j++)
  8. plot[i][j]=' ';
  9. for(t=0;t<=10;t++)
  10. {
  11. y=t*t-4*t+5;
  12. for(i=0;i<67;i++)
  13. for(j=0;j<11;j++)
  14. if(i==y && j==t)
  15. plot[i][j]='*';
  16. }
  17. for(i=66; i>=0; i--)
  18. {
  19. for(j=0; j<11; j++)
  20. printf("%c",plot[i][j]);
  21. printf("\n");
  22. }
  23. return 0 ;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement