Answer to Question #5597 in C++ for firezer
2011-12-13T09:22:36-05:00
I need a c++ code for the following two serioueses
1)
5 4 3 2 1 2 3 4 5
5 4 3 2 3 4 5
5 4 3 4 5
5 4 5
5
5 4 5
5 4 3 4 5
5 4 3 2 3 4 5
5 4 3 2 1 2 3 4 5
2) 5
4 5 4
3 4 5 4 3
2 3 4 5 4 3 2
1 2 3 4 5 4 3 2 1
2 3 4 5 4 3 2
3 4 5 4 3
4 5 4
5
1
2011-12-16T12:00:08-0500
main.cpp #include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { cout<<"5 4 3 2 1 2 3 4 5"<<endl; cout<<"& 5 4 3 2 3 4 5& "<<endl; cout<<" 5 4 3 4 5& quot;<<endl; cout<<" 5 4 5 quot;<<endl; cout<<" & 5 quot;<<endl; cout<<" 5 4 5 quot;<<endl; cout<<" 5 4 3 4 5& quot;<<endl; cout<<"& 5 4 3 2 3 4 5& "<<endl; cout<<"5 4 3 2 1 2 3 4 5"<<endl; system("PAUSE"); return EXIT_SUCCESS; } main2.cpp #include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { cout<<" & 5 quot;<<endl; cout<<" 4 5 4 quot;<<endl; cout<<" 3 4 5 4 3& quot;<<endl; cout<<"& 2 3 4 5 4 3 2& "<<endl; cout<<"1 2 3 4 5 4 3 2 1"<<endl; cout<<"& 2 3 4 5 4 3 2& "<<endl; cout<<" 3 4 5 4 3& quot;<<endl; cout<<" 4 5 4 quot;<<endl; cout<<" & 5 quot;<<endl; & system("PAUSE"); return EXIT_SUCCESS; }
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS !
Learn more about our help with Assignments:
C++
Comments
Leave a comment