0

why don't run this code?? plz help..

/*Finding the largest of three numbers*/ #include<stdio.h> main() { int a,b,c; printf("input three integer numbers"); scanf("%d%d%d",&a,&b,&c); if(a>b)&&(a>c); printf("\n %d is the largest number",a); else if(b>a)&&(b>c) printf("\n %d is the largest number",b); else(c>a)&&(c>b) printf("\n %d is the largest number",c); return0; }

13th Jul 2017, 12:16 PM
Tamzid Hasan
Tamzid Hasan - avatar
8 odpowiedzi
13th Jul 2017, 1:59 PM
khadeeja Shamna
khadeeja Shamna - avatar
+ 1
Don't add condtion in else part
13th Jul 2017, 1:05 PM
Nirmal Kumar Bhakat
Nirmal Kumar Bhakat - avatar
+ 1
thanks for Help..
13th Jul 2017, 1:48 PM
Tamzid Hasan
Tamzid Hasan - avatar
+ 1
bro I don't understand..Kindly tell me in details.. plz plz
13th Jul 2017, 1:51 PM
Tamzid Hasan
Tamzid Hasan - avatar
+ 1
thanks apu..for ur information..
13th Jul 2017, 2:04 PM
Tamzid Hasan
Tamzid Hasan - avatar
+ 1
else part is default block all conditions are false which are placed in of and if else automatically execite else block so comdition dont required in else statement
13th Jul 2017, 3:04 PM
ch.chitti srilakshmi
ch.chitti srilakshmi - avatar
+ 1
thnx #sri venkat
13th Jul 2017, 3:35 PM
Tamzid Hasan
Tamzid Hasan - avatar
+ 1
else part a condition daoya jaba na
6th Aug 2017, 4:11 PM
Noushin tabassum