what is the difference between a looping statement and a
decision statement
Answer Posted / 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 |
Post New Answer View All Answers
Can we write a method in JSP.If so how?
What sysoption determines where the macro facility searches a specific catalog for complied macro?
can we extend a class having only one parameterised constructor.Suggest the process to do it.
What is test execution and when will we start execution please send me one example for this question
Mainly Related to Oracle, DBMS , Oracle Stored Procedures, Functions, Oracle 9i Architecture, Redo logs..., Views,
what is radio button? Plz show code this! how will select radio buttons to go next window Forms? Supose o radio button1 o radio button2 o radio button3 o radio button4 how will coding this? Plz explain this!
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box. eg: 3 box contain stick as:1,1,1. if u take 1 stick from 3rd numbred box you will any how win the match.
how to generate dsnless connectivity in j2ee
what is difference between object oriented programming structure and object oriented programming system?
How to know we are in home page of a web application using QTP
how can i split string in a textbox in windows appication using C#.net
THE CHANNEL IN DATA COMMUNICATION CAN BE?
why we use abstract in awt?
What is the difference between CLEAR & RESET and OPEN & CLOSE OPCOEDS(USING RPG/400).wheare we can use this?can any body tell me in real time senario with example please?
what is the work of 1tier,2tier,&ntier? Plz Explain it!