when i compile this program, and when i input a variable from the keyboard i would like to show the variable how can i do that with a=getch();.
For example if i type (a) it should show (a) on the screen
Code:#include <stdio.h> #include <conio.h> int main() { char a,b; printf("get me a value "); a=getch(); if (a==b) { printf("\nhi"); } else{ printf("\nruni"); } getch(); }