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 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give examples of macro quoting function?

1630


Hi All, Can any one please send me the difference between informatica 7i and 8i versions, Thanks in advance. vinod

1641


suppose we have ten members of a physical file but we want the output of last 5 members only.how to achieve that?

1612


Any real time example of O2C process from taking order till creating invoice.

1901


how to convert the data from HTML file to SAS dataset?

2283






What is ur porject Architecture? If anyone ask what i have to specify here..

1575


Hi..Am done with my Masters recently..Am planning to learn TIBCO.. could anyone suggest me about how the job market will be and Is there any course necessary to learn prior to Tibco..i mean any prerequisite. I dnt have any knowledge on PL/SQL thats it... Plz suggest me in a best way...

1902


Display names and numbers of employees who have 5 years or more experience and  salary less than Rs.15000 using array of structures (name, number, experience and  salary)

4394


Where do we need Operator overloading?

752


Write a program to find whether a given number is prime or not.

689


hi This is radhika.Can anyone help me to know the question papers of NATIONAL INFORMATICS CENTRE for the post of scientific officer/engineer? if anyone know plz tell me question paper pattern

1617


How will you prove that java swing is multithreaded?

1787


what is the use of occurs 10 or (any number) in the internal table declaration with header line.

1560


WHat is execution in manual testing and when will we start execution and what language we use in execution

1562


Please describe an example where you used object orientation in one of your programs.

1573