With the following if statement:
if (a==b)
{
x=10
}
else
{
if (c==d)
{
x=55
}
else
{
x=100
};
};
what is the value of x under the following condition?
a=5, b=1, c=100, d=50
a=5, b=10, c=o, d=4
a=0, b=100, c=5, d=0
hope someone can help
|
+ Reply to Thread
Results 1 to 4 of 4
Thread: if statement
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S. Wed Yourself to UML with the Power of Associations Microsoft to Add AJAX Capabilities to ASP.NET IBM's Cloudscape Versus MySQL | ||||||||||||||||||||||||||||||||||
![]() | |||||
|
| |||||
![]() |
Bookmarks