I have problem with Visual Studio Code. I wrote simple program to input age and output inputted age. When I just run program in run mode in terminal is possible to input age and it is outputted. But in debug mode in terminal is nothing no possible to input age and no outputted age. Why? Can you help me pls? Adding code:
#include <stdio.h>
int main()
{
int age;
printf("nHello world!");
printf("nWrite your age:");
scanf("%d", &age);
printf("nYour age is:%d", age);
return 0;
}
I have installed MinGW and extensions: C/C++ IntelliSense, debugging, and code browsing and Code Runner. Expecting: Fix the debug problem.
Just pro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.