0
#include <iostream>
using namespace std;

int main()
{
    int a, b = 10, c;
    int age = 23;
    float average;
    char gender = 'm';
    bool isit = true;

    average = 22.45;

    cout << age << endl << average << endl << gender << endl << isit;

    return 0;
}

I don't know but I'm using Microsoft Visual Studio for C++ I don't know if it has something to do with the settings but when I build and run it then command prompt window disrepair right away.

Shreevardhan
  • 12,233
  • 3
  • 36
  • 50

1 Answers1

1

Put this at the end:

cin.get();

It will wait for a user input.

TobiasR.
  • 826
  • 9
  • 19