Answer:
because you are asking questions like this
Explanation:
when you ask questions you lose points
Answer:
# include<iostream>
#include<conio.h>
using namespace std;
main()
{
char choice;
cout<<"Enter your Choice"
cin>>choice;
switch (choice)
{
case 'y':
cout<<"Your request is being processed";
break;
case 'n':
cout<<"Thank you anyway for your consideration";
break;
case 'h':
cout<<"Sorry, no help is currently available";
default:
cout<<"Incorrect Choice";
break;
}
getch();
}
Explanation:
In this program, a character type variable named as choice is selected for the input. This choice variable can be y, n or h as per requirement of the program. Switch statement is chose for the selection of output statement with respect to its mentioned input. This program shows the output statement for above mentioned characters. In case of any other character the program returns Incorrect choice and ends.
Answer:
Sorting Algorithm
Explanation:
Here we are arraigning the elements in ascending order. Using for loop we are iterating through all the elements. in one iteration the first minimum element in the list is at 1st place and in the second iteration the second minimum element is in 2nd position and so on