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
Pierwiastkowanie
amma2
Filtering a vector attribute with template UnaryPredicate
123
Codigo Luz Led
Counting top students
HashConPar
test
Silly circular pointer
MINVEST