Hello Everyone
I am getting unexpected result so can anybody tell me why is it happening?.
#include <iostream>
#include <cstdio>
#include <cstdlib>
using namespace std;
int main()
{
int a,b,c;
while ( (scanf("%c %d %d", &a,&b,&c)) != EOF ) {
cout << "Hello\n";
}
system("pause");
}
It is printing hello first time but on second time onwards it is printing Hello two times ....
Any suggestions are really appreciated.
Thanks