Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main() {
- int num = 9;
- for (double y = 1; y >= -1; y -= 0.2) {
- for (double x = 0; x <= num; x += 0.2) {
- if ((0.1 + y) >= sin(x) && (y - 0.1) <= sin(x))
- cout << '@';
- else if(y==0.8)
- cout << '-';
- else
- cout << ' ';
- }
- cout << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement