Friday, 27 November 2015

Find Maximum Number From Three Number Using Logical Operator : C Program


#include<stdio.h>

#include<conio.h>

void main()

{

int a,b,c;

clrscr();

printf("Enter Three Numbers:");

scanf("%d%d%d",&a,&b,&c);

if(a>b&&a>c)

printf("Maximum number is %d",a);

 else if(b>a&&b>c)

printf("Maximum Number is %d",b);
else

printf("Maximum Number is %d",c);

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.