what is the difference between a looping statement and a
decision statement
Answers were Sorted based on User's Feedback
Answer / guest
looping statement will be executed repeatedaly until the
condition becomes false.
Decision statment have only one entry point but must have
two exit points since the answer to the question can be
either a "YES" or a "NO".
| Is This Answer Correct ? | 90 Yes | 8 No |
Answer / ankit guha
the main difference between looping statement and decision making statement is that in loop the statement execute several times until the condition would not get false whereas in decision the statement execute either one or not execute on the basis of the condition provided.
| Is This Answer Correct ? | 25 Yes | 6 No |
Answer / vignesh1988i
looping statement :
this can rotate to a specific number of times upto
the termination condition given ......
here we can conclude many decisions by further adding
statements using some decisions control statement....
for eg :
for(int i=0;i<5;i++)
{
if(i%2==0)
{
printf("winner ");
if(i)
printf("looser ");
}
else
{
printf("intelligent ");
if(i)
printf("big idiot");
}
}
here using both looping and conditions structures we there
by get different by varying the values of 'i'.
decision statement:
in these statements we must take only one decision at a
time....... multiple desions not possible... the decisions
can be nested ..... but no 2 or more decisions possible at a
time.....
eg: if-else,switch
thank you
| Is This Answer Correct ? | 24 Yes | 20 No |
Answer / paravati
Distinguish between decision making and looping statements ?
| Is This Answer Correct ? | 0 Yes | 0 No |
is possible to delete specific data in a row by using of sql query?
can anyone please tell me the procedure for the NIC personal interview as i have been selected for the post of scientist/technical assistant B
Diff.b/w Frames and container?
1 Answers Tech Mahindra, Wipro,
what is delegate and how works delegate and event.
I'm new to ABAP. What is Module pool in SAP?
What is the purpose of <Trigger> element of <updatePanel> in Ajax
What's the difference b/w Table & Templete in Smartform?
An image map is a collection of
Hi, I'm doing B.com 3rd year. Simultaneously I'm doing software engineering in a private institution. I would like to know whether my B.com graduation alone is enough to get me a job in the IT field or should I do some PG course not MBA... suggest me...
Describe the difference between Interface-oriented, Object-oriented and Aspect-oriented programming
hi friends please tel me how to handle the recovery manager(All i.e PopUp ,Application Crach ,Object state,etc) in QTP
1.What is difference between symget and & in sas? 2.what is difference between callsymput and %let?