|
|
вернуться в форумwhat's wrong with this code.....???? #include<stdio.h> #include<math.h> int main() { int n;
printf("%d\n",scanf("%d",&n)*n*scanf("%d",&n)*n*scanf("%d",&n)*n*2); } Re: what's wrong with this code.....???? Послано mhg 6 июл 2014 16:56 you write so complex, the answer is N*A*B*2 Re: what's wrong with this code.....???? why so complex man!! Re: what's wrong with this code.....???? Should it work at all? Isn't it unspecified behavior - n is modified 3 times in the same expression? Re: what's wrong with this code.....???? Brother, you should solve it step by step!Don't do all things in printf function.In this way u can easily find you bug! Re: what's wrong with this code.....???? You can follow this method n*a*b*2 |
|
|