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
Is the IT field raise again? What is the position of IT after 4 years?
can u send some model papers how computer awareness questions are asked in goverment jobs(oriental insurance)to my mail id me.priyankapadma@rediff.com
Is there any standard procedure to test the application as a whole? Or How can I test complete application right from the requirement gathering?
without selecting individually each field in Action Class from jsp,what is the best process to select as many as field at a time automatically from jsp page by using value object class.
WHAT IS MAIN IMPORTANT THING IN SOFTWARE?
Compare any 4 software development life cycle paradigms with each other. Indicate at least one application for each of the paradigms that are suitable to developed using that paradigm.
When we use Windows authentication mode
When will you use shell script/Perl ahead of C/C++?
how sap is different from other software ?
why not instantiating servet using new operator?
what is the basic and unique feature of dotnet
how to hide prompts
Q2. A memory location has physical address D5687h. Compute: a. The offset address if the segment number is D445h. b. The segment number if the offset address is B577h.
What binary value will be internally stored for NULL for the type S9(1) COMP 3 in mainframe
Write a function which accepts a sentence as input parameter.Each word in that sentence is to be reversed. Space should be there between each words.Return the sentence with reversed words to main function and produce the required output. for eg:- i/p: jack jill jung kill o/p: kcaj llij gnuj llik