UVA -1177
I need to convert a double number to an integer and print it. Let ans is that double number. Now,if I write
Your code here...
printf("%0.lf\n",&ans);
I got accepted. But instead if write
Your code here...cout<<(int)ans<<"\n";
I got wrong answer.