68 338
Assignments Done
98,8%
Successfully Done
In November 2018

Answer to Question #5597 in C++ for firezer

Question #5597
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




Expert's answer
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!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions