Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
c++ mouse
/* **samuel ugochukwu nwutobo **sammycageagle@gmail.com */ #include <iostream> using namespace std; const int height = 10; const int width = 10; void draw(); int x; int y; int main() { cin>>x>>y; draw(); } void draw() { for(int i =0; i <height ;i++) { for(int j =0; j <height ;j++) { if(j ==0 ) cout<<"¤"; if(j==x&&i==y) cout<<"*"; else cout<<" "; if(j==width-1) cout<<"¤"; } cout<<endl; } for(int i =0; i <height ;i++) cout<<"¤ "; cout<<endl; }
run
|
edit
|
history
|
help
0
pranav pandey
FInd rows with maximum no of 1's
Anagram finder
Search in a rotated sorted array two methods
fgm
543
lifff
extern
Triangle
Wipro Problem 1