Answer to Question #123320 in C++ for Riya

Question #123320
#include <iostream.h>
int main()
{
char ch == ‘a’;
if (ch >= ‘A’ && ch <= ‘Z’)
ch = ch + 32;
else
ch = ch - 32;
cout << “Output = ” << ch;
}
1
Expert's answer
2020-06-22T14:54:57-0400
#include <iostream>

using namespace std;

int main()

{

    char ch = 'a';

    if (ch >= 'A' && ch <= 'Z')

    ch = ch + 32;

    else

    ch = ch - 32;

    cout << "Output = " << ch;

}


Output:



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 the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS