Write a c++ program that accepts three letters from the user using character input and output
Answers
Answered by
7
ANSWER
....................
/* *
Traditional C-style.
*/
#include
<iostream>
using namespace std; int main()
{
if (mark >= 50)
//
in level-1 block, indent once
{
cout << "You Pass!"
<< endl; // in level-2 block, indent twice
}
else
{
cout << "You Fail!" << endl;
}
}
....................
/* *
Traditional C-style.
*/
#include
<iostream>
using namespace std; int main()
{
if (mark >= 50)
//
in level-1 block, indent once
{
cout << "You Pass!"
<< endl; // in level-2 block, indent twice
}
else
{
cout << "You Fail!" << endl;
}
}
prathamesh1855:
nics EXPLANATION
Answered by
5
string selection; cout << "Please enter the number where you're looking for or press x to exit the program: "; cin >> selection; if (selection = 'x') { quit = true; } else { selection = atoi(selection); cout << selection; }
Similar questions