/******************************************************************************
Welcome to code of Lập trình - Điện tử
Series: C++
Author: Nghĩa Taarabt
*******************************************************************************/
#include <iostream>
using namespace std;
int main()
{
char user_input;
int taskcount = 0;
// take input from the user
cout << "Enter a character: ";
cin >> user_input;
while ('e' != user_input)
{
taskcount++;
cout << "Number of Task = " << taskcount << endl;
cin >> user_input;
}
cout << "End of process, number of task = " << taskcount << endl;
return 0;
}