Here You Will Know Only About Computer Programming and Concept.
Wednesday, December 3, 2008
A Program that will Find the Max Number among three Number
#include void main () { int a,b,c,max, printf ("Enter Three Values: "); scanf ("%d %d %d", &a, &b, &c); if (a>b) { if (a>=c) max = a, else max = c, } else { if (b>=c) max = b, else max = c, } printf ("Maximum of %d, %d and %d is %d\n", a,b,c,max); }
No comments:
Post a Comment