C programing problem no 1 soled [1] Find maximum 3 numbers given by the user number from. /* C program to find largest number using if statement only */ #include int main() { float a, b, c; printf(Enter three numbers: ); scanf(%f %f %f, &a, &b, &c); if(a>=b && a>=c) printf(Largest number = %.2f, a); if(b>=a && b>=c) printf(Largest number = %.2f, b); if(c>=a && c>=b) printf(Largest number = %.2f, c); return 0; }
Posted on: Sun, 27 Oct 2013 10:42:18 +0000
Trending Topics
Recently Viewed Topics
© 2015