Quote:
Originally Posted by ptgcomputer
hi iam praveen iam having doubt please try to solve it
if iam having
main()
{ int a=500,b,c;
if(a<=400)
b=300;
c=200;
}
only the value of c is displayed but the value of b is not displayed correctely
ur condition is wrong . To print b and c ur condition should be a>=400 or a>400 or a>=500.