1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alex_Xolod [135]
3 years ago
7

Outputting all combinations. Output all combinations of character variables a, b, and c using this ordering abc acb bac bca cab

cba.
If a = 'x', b = 'y', and c = 'z', then the output is: xyz xzy yxz yzx zxy zyx
Your code will be tested in three different programs, with a, b, c assigned with 'x', 'y', 'z', then with '#', '$', '%', then with '1', '2', '3'.

#include
using namespace std;
int main()
{
char a; char b; char c;
cin >> a; cin >> b; cin >> c;
/* Your solution goes here */
cout << endl;
return 0;
}
Computers and Technology
1 answer:
Alina [70]3 years ago
5 0

Answer:

#include<iostream>

using namespace std;

 

int main()

{

   char a;  

   char b;  

   char c;

cin >> a;  

cin >> b;  

cin >> c;

 cout<<a<<b<<c<<endl;

 cout<<a<<c<<b<<endl;

 cout<<b<<a<<c<<endl;

 cout<<b<<c<<a<<endl;

 cout<<c<<a<<b<<endl;

 cout<<c<<b<<a<<endl;

 

cout << endl;

}

Explanation:

Note: code is hard coded it does not contain any logic based coding

You might be interested in
Which is the correct expansion of the term Internet?
dem82 [27]

Answer:

international network is the answer

6 0
3 years ago
Read 2 more answers
The _______ number system allows digital devices to represent virtually any number simply by using 0s and 1s.â
zhuklara [117]
The answer is <span>Digital data 

</span>
4 0
3 years ago
To copy the formatting of selected text to another place in the document use _____.
ANEK [815]
To copy the formatting of selected text to another place in the document use the paintbrush AKA. Format painter
7 0
3 years ago
Some personal computer manufacturers provide a hard disk configuration that connects multiple smaller disks into a single unit t
pav-90 [236]
In software: Logical Volume. In hardware it's usually called RAID (Redundant Array of Inexpensive Devices).
6 0
3 years ago
Which of these can be used as a smartphone with the power of a laptop?
sashaice [31]
I would go with A) Tablet because that's basically a bigger phone and mobile cmp combined, its not D) because that's a synonym for a smartphone and not C) because paper and pencil is not like a smartphone, and not B) because that's like reading online books.
4 0
2 years ago
Read 2 more answers
Other questions:
  • If a filesystem has a block size of 4096 bytes, this means that a file comprised of only one byte will still use 4096 bytes of s
    12·1 answer
  • Who would like to join a team devoted to decreasing spam and bullying?
    5·1 answer
  • Write a full class definition for a class named Averager, and containing the following members:______An data member named sum of
    6·2 answers
  • Which of the following topics is too broad for a 10-minute speech? A. classes offered in interior design B. the history of moder
    13·2 answers
  • (Best Buy Part A) At a Best Buy store, the forecast for the annual demand of a Motorola cell phone is 15600. Demand forecasts ar
    12·1 answer
  • Which is the correct attribute syntax
    9·1 answer
  • Please list ten things that you have learned an Excel Spreadsheet can do.
    7·1 answer
  • One common method of converting symbols into binary digits for computer processing is called ASCII​ (American Standard Code of I
    5·1 answer
  • What are the disadvantages of using pointers?
    6·1 answer
  • WHAT DOES THE SCRATCH CODE BELOW DO?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!