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 oops?
You are given a dictionary of all valid words. You have the following 3 operations permitted on a word: delete a character, insert a character, replace a character. Now given two words - word1 and word2 - find the minimum number of steps required to convert word1 to word2. (one operation counts as 1 step.)
I want Ada programming language books. Could anyone post me any link for that?
in IT trend mantis meant what? how to know mantis in IT trends? detail description about mantis?
0 Answers Sacred Heart College,
Explain polymorphism. Provide an example.
how to convert infix expression to prefix expression?
What are the limitation in using querystring in .net?
what is the basic and unique feature of dotnet
What do you meant by Runtime Polymorphism?
WHAT IS THE MEANING OF CONSTANT ...EXEEDS LENGTH LIMIT WHILE COPYING FROM PS FILE TO KSDS
what is jackson structured develepment?? and how is it different from OMT??
What are two of your strengths that you will bring to our QA/testing team?