Program To Display The Maximum Value Of Given 3 Integer Values
/* Program To Display The Maximum Value Of Given 3 Integer Values */ #include
#include
void main() { int x,y,z; clrscr(); printf("\nEnter 3 integer values\n\n"); scanf("%d%d%d",&x,&y,&z); if(x>y) { if(x>z) printf("\n%d is the maximum value",x); else printf("\n%d is the maximum value",z); } else if(y>z) printf("\n%d is the maximum value",y); else printf("\n%d is the maximum value",z); getch(); }
Please send comments to
vgdarur.javafive@blogger.com
Copyright © 2008 - iForeRunner.com
http://www.iforerunner.com/