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
Give examples of macro quoting function?
Hi All, Can any one please send me the difference between informatica 7i and 8i versions, Thanks in advance. vinod
suppose we have ten members of a physical file but we want the output of last 5 members only.how to achieve that?
Any real time example of O2C process from taking order till creating invoice.
how to convert the data from HTML file to SAS dataset?
What is ur porject Architecture? If anyone ask what i have to specify here..
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...
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)
Where do we need Operator overloading?
Write a program to find whether a given number is prime or not.
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
How will you prove that java swing is multithreaded?
what is the use of occurs 10 or (any number) in the internal table declaration with header line.
WHat is execution in manual testing and when will we start execution and what language we use in execution
Please describe an example where you used object orientation in one of your programs.