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
|
Go4Expert Member
|
![]() |
| 29Mar2008,14:43 | #2 |
|
Quote:
Originally Posted by ptgcomputer |
|
Light Poster
|
|
| 2Apr2008,12:06 | #3 |
|
hi iam praveen i am having doubt
if iam having like this then what is wrong in it i am not able to find it output is not coming Code:
main()
{ int n, s ,pay;
printf("Enter the value of n\n");
scanf("%d",&n);
while(n>40)
{ s=(n-40)*12;
pay=s*10;
printf("the pay is =%d",pay);
}
)
Last edited by shabbir; 2Apr2008 at 14:40.. Reason: Code block |

