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 | 19 No |
How should a programmer decide whether to use a macro or a subroutine to accomplish a given logical function
1 Answers R V College of Engineering, University of Jordan,
What is the difference between an EXE and a DLL?
3 Answers ABC, Hykin Solutions, Infoedge, Infosys, Polaris,
why rownum=1 works properly but not rownum=>2,=>3 etc.
What is the difference between windows 98/2000/XP Operating Systems?
16 Answers CMS, Siemens, TCS,
what are the activities you enjoy most and How do you see these Developing in the Future with Reference to in your work life and in your personal life
What is %Type,%Rowtype?
What is the difference between save and create method of activerecord?
can we extend a class having only one parameterised constructor.Suggest the process to do it.
Diff between IF and where ?
how to stop execution of step 3 in a job mainframe
What is the use of sas software? Is sas and sap are different?
Hai, My name is nisha.I have NIC exam.If anybody Knows NIC previous paper pattern pls send me to nishanairp@gmail.com