What I want to know is if you can run a C program and give the program entries through the same .bat file for example a program that adds 2 numbers what I do in the code below is compile it and generate a. exe that is called add then in the following line executes it and the time to execute it I want that when asking the numbers the program to add automaticallycamente enter the 10 then the 20 and already the program says how much is the sum ... can be done somehow? in advance, thank you very much
gcc sumar.c -o sumar
sumar
10
20
pause