0
#include <iostream>
using namespace std;

int main()
{
    string s;
    int khan=0;
    cout << "Enter1 " << endl;
    getline(cin,s);
    cout << "Enter2 " << endl;
    cin >> khan;
    cout << "Enter 3" << endl;
    getline(cin,s);
    return 0;
}

This is my code why does it skips the third input from the user?

0 Answers0