Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4. int main() {
  5. int num = 9;
  6. for (double y = 1; y >= -1; y -= 0.2) {
  7. for (double x = 0; x <= num; x += 0.2) {
  8. if ((0.1 + y) >= sin(x) && (y - 0.1) <= sin(x))
  9. cout << '@';
  10. else if(y==0.8)
  11. cout << '-';
  12. else
  13. cout << ' ';
  14. }
  15. cout << endl;
  16. }
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement