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
Difference between HTML and DHTML?
Diff between IF and where ?
how to add Servlet-api.jar file into eclipse 3.3.2 ?
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
what is client server & server? What r types of Joins? explsin it! which types of indexex in sql server? what is triggers?
Suppose server object is not loaded into the memory, and the client request for it , what will happen?
What is web.configuration? how is it work? & wht is use this?
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.)
please any one pass file aid,xpeditor and endeavor tools
A good website has the following conditions It should be interactive. It should contain at least 20 images. Title cannot be null and should contain at least 10 letters other than spaces and hyphen (-). The keywords should contain atleast three among the following list : "design", "Graphics", "lovely", "beautiful", "amazing" and "mesmerising" Write a method: boolean isGoodWebsite(boolean isInteractive, int numOfImages, String title,String keywords[]) isInteractive whether the site is interactive or not numOfImages Number of images on the website title Title of the website keywords Array of keywords in the website.
WHAT IS MAIN IMPORTANT THING IN SOFTWARE?
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
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...
1. Write a program to create a sentence at runtime and count number of vowels in it ? 2. Write a program to get a string and to convert the 1st letter of it to uppercase ?
hai i am prasanna.I am MCA 2009 fresher.tell me about certifications.which certification helps me to improve my carrier and to get a technically oriented job ,which certification helps to get job faster.