Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main ()
- {
- int i,j,y,t;
- char plot[67][11];
- for(i=0; i<67; i++)
- for(j=0; j<11; j++)
- plot[i][j]=' ';
- for(t=0;t<=10;t++)
- {
- y=t*t-4*t+5;
- for(i=0;i<67;i++)
- for(j=0;j<11;j++)
- if(i==y && j==t)
- plot[i][j]='*';
- }
- for(i=66; i>=0; i--)
- {
- for(j=0; j<11; j++)
- printf("%c",plot[i][j]);
- printf("\n");
- }
- return 0 ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement