#Output a character

5 messages · Page 1 of 1 (latest)

austere pagoda
#

#include<stdio.h>
int main(){

char input;
printf("Enter your operation:");
scanf("%c",&input);

printf("You entered %c",&input);

return 0;
}

sour surgeBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

austere pagoda
#

How do I take a character like + and output it?

#

This code gives the ouput you entered 0

#

!solved( I had a typo in the code)