Ask Experts Questions for FREE Help!
Ask    ||    Answer
 
Advanced  
 

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Other Programming   »   If-then-else statements

 
Thread Tools Search this Thread Display Modes
Question
 
 
#1  
Old Jul 16, 2009, 10:26 AM
andyhaus1057
Junior Member
andyhaus1057 is offline
 
Join Date: Sep 2007
Posts: 109
andyhaus1057 See this member's comment history on his/her Profile page.
If-then-else statements

How would I go about designing an If-Then-Else statement or a flowchart with a dual alternative decision structure) that assigns 0 to the variable b if the variable a is less than 10? Otherwise, it should assign 99 to the variable b.

Reply With Quote
 
     

Answers
 
 
Old Jul 16, 2009, 10:50 AM   #2  
Ultra Member
ebaines is offline
 
Join Date: Apr 2007
Location: Illinois, US
Posts: 3,763
ebaines See this member's comment history on his/her Profile page.ebaines See this member's comment history on his/her Profile page.ebaines See this member's comment history on his/her Profile page.ebaines See this member's comment history on his/her Profile page.
Not sure what language you're into, but in general the logic would be like this:

if(a<10)
then b = 0;
else b = 99;
endif

Comments on this post
Perito agrees: Quite right.
  Reply With Quote
 
     

Your Answer
Email me when someone replies to my answer
Join Login





Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

 
Similar Sponsors


Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

Similar Threads
401K Statements
(1 replies)
Income Statements
(0 replies)
Accounting Statements
(2 replies)
Financial Statements
(1 replies)
old bank statements
(2 replies)

Search this Thread

Advanced Search

Bookmarks

Sponsors



Copyright ©2003 - 2009, Ask Me Help Desk.
All times are GMT -8. The time now is 04:29 PM.