V vinaysb Estimable Jul 16, 2014 1 0 4,510 Jul 16, 2014 #1 #include <stdio.h> main() { int fh; int cel; fh = 200; cel = 5.0 * (fh-32) / 9.0; printf("your celsius degree is %lf\n", cel); } that is my code
#include <stdio.h> main() { int fh; int cel; fh = 200; cel = 5.0 * (fh-32) / 9.0; printf("your celsius degree is %lf\n", cel); } that is my code
Solution C C clau_aclx Jul 16, 2014 well "cel" is declared integer. Try with float. #include <stdio.h> main() { int fh; float cel; fh = 200; cel = 5.0 * (fh-32) / 9.0; printf("your celsius degree is %lf\n", cel); } seems to be working fine http/www.compileonline.com/compile_c_online.php
well "cel" is declared integer. Try with float. #include <stdio.h> main() { int fh; float cel; fh = 200; cel = 5.0 * (fh-32) / 9.0; printf("your celsius degree is %lf\n", cel); } seems to be working fine http/www.compileonline.com/compile_c_online.php
C clau_aclx Honorable Oct 10, 2013 2 0 10,520 Jul 16, 2014 Solution #2 well "cel" is declared integer. Try with float. #include <stdio.h> main() { int fh; float cel; fh = 200; cel = 5.0 * (fh-32) / 9.0; printf("your celsius degree is %lf\n", cel); } seems to be working fine http/www.compileonline.com/compile_c_online.php Upvote 1 Downvote Solution
well "cel" is declared integer. Try with float. #include <stdio.h> main() { int fh; float cel; fh = 200; cel = 5.0 * (fh-32) / 9.0; printf("your celsius degree is %lf\n", cel); } seems to be working fine http/www.compileonline.com/compile_c_online.php