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 |
what is the meaning of without standing arrears?
Write a program to create a process in UNIX
How to change the color of a cell or a row in a datagrid on mouse hover using javascript/.net
what are partial classes. Where is the entry point of partial classes.
4. What is the need of START 0? Instead if can we use any other numeric? If we use what will happen?
how to stop execution of step 3 in a job mainframe
I've an application where i need to give access to all the features only to admin and only few features to normal users. Say Menu...i dont want all my menu items to be accessible to all the users only the admin people can see few all the features where as normal users can have access to limited menu items...how can i achieve this. Please note that my menu is not a database driven menu.
what is the BAM? where we can use it in BizTalk server?
define profiler???
what do you meant by Platform-Independent in Java?
In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?
hi, all this is shoba m.c.a . i have learned abap but no oppurtunities right now as fresher , right now i want to learn any course on demand any one pls suggest me good course and institute in hyderabad