|
|
back to boarddo not understand.... Posted by Erik 26 Oct 2004 04:54 i see not the problem in my code but the test 12# yes can any1 help me??? Thanks #include <stdio.h> void main(void) { float n,m; scanf("%f%f",&n,&m); if(m>=n) printf("%.0f",2.0*n-2.0); if(m<n) printf("%.0f",2.0*m-1.0); } Use longer type instead of float (-) |
|
|