TOPIC
Printing after every Input
zhunts asked 6 years ago
After every input printing my output result, but here need is program will print result after terminate. I tried huge time and change the code but I didn't able to find out soluttion. Here is my code
int x,y;
cin>>x>>y;
do
{
if(x>y)
printf("Decresente\n");//Descending
else if(x<y)
printf("Cresente\n"); //Ascending
cin>>x>>y;
}while(x!=y);
Can anybody help me out how can I print after porgram terminate.