Hi iam new to programming ia using Dev C++ 4.9 as my compiler. When i compile an run the program it works fine but i want it to stay in the dos to see my results, the programs runs and it quickly ends so i cannot see the results.
what do i need to add to this code so it will display my name or result and stay there.
thanks
Code:#include <stdio.h> int main() { char name[40]; printf("Please enter your name: "); scanf("%s", &name); printf("Your name is %s", name); return 0; }