Output with 'and "characters - ""

The output
Description with 'and "characters
input one character and output two lines.

The first line wraps the characters with'.

The second line wraps the characters with ".

Input
Enter a character.

Output
according to the title description output.

Sample
Input
A
Output
‘A’
“A”

#include <iostream>
#include <bits/stdc++.h>
using namespace std;

int main()
{
    
    
    char c;
    cin>>c;
    cout<<"'"<<c<<"'"<<endl;
    printf("\"%c\"", c);
    return 0;
}

Guess you like

Origin blog.csdn.net/KO812605128/article/details/112339072