523,319 views
17 votes
17 votes
#include

int main()
{
char ch;
printf("Enter any letter");
ch=getch
();
printf("\\You Pressed %c",ch);

return 0;
}
whats the error not giving the correct output

User Carlos Sultana
by
3.1k points

1 Answer

12 votes
12 votes

Answer:

#include<studio.h>

#include<conio.h>

void main()

{

char ch;

printf("Enter any letter");

scanf("%c",&ch);

User Kassem Itani
by
2.9k points