I want the user to press either the W or the D key, W for withdrawing, D for depositing. If the user press the W key, it will immediately prompt the user for withdrawal amount (without typing the alphabet W then press ENTER key), how can I do that? Is kbhit() is right function? Btw, I'm learning C on Windows platform.Code:#include <conio.h>
#include <stdio.h>
int main()
{
int bal,wit,dep;
printf("enter balance: ");
scanf("%i",&bal);
printf("[W]=Withdraw [D]=Deposit\nPress a key to continue");
/*
if(kbhit()=)
{
}
if(kbhit()=)
{
}
*/
getch();
}