Friday, 27 November 2015

Find Maximum Number Using If Condition :C Program


#include<stdio.h>

#include<conio.h>

void main()

{

int a,b,c,max;

clrscr();

printf("Enter First Number");

scanf("%d",&a);

printf("Enter Second Number");

scanf("%d",&b);

printf("Enter Third Number");

scanf("%d",&c);

max=a;

if(b>max)

max=b;

if(c>max)

max=c;

printf("The Maximum Number is:%d",max);

getch();

}

27 Nov 2015

0 comments:

Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.