22.5k views
4 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 TheGambler
by
5.0k points

1 Answer

4 votes

Answer:

#include<studio.h>

#include<conio.h>

void main()

{

char ch;

printf("Enter any letter");

scanf("%c",&ch);

User FileX
by
4.2k points