Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int main()
- {
- int a;
- int b;
- int c;
- for(int i=-25;i<25;i++)
- {
- if(i<0) a=-i;
- else a=i;
- a=pow(a, 2);
- for(int j=-25;j<25;j++)
- {
- if(j<0) b=-j;
- else b=j;
- b=pow(b, 2);
- c=pow((a+b),(0.5));
- cout << "\x1b[48;2;"<<255-(c)*10<<";0;0m ";
- }
- cout << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement