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
what is woransient key word? how it is used in java
how much fee for deccan soft institute .how to block seat for sandeep sir class reply soonnnn
Mainly Related to Oracle, DBMS , Oracle Stored Procedures, Functions, Oracle 9i Architecture, Redo logs..., Views,
write a query that returns one row for each department and the number of employees in that department. Given two tables EMPLOYEE and DEPARTMENT, where there can be multiple employees per department.
sample and simple coding where we get?
what is the use of occurs 10 or (any number) in the internal table declaration with header line.
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)
what is the purpose of checked Menu options
in network security,how we identified threat?some one say we found threat according to it's signature,but how we get signature or pattern of the virus?
Hey this is venkatesh.Please can any body tell me what is SFLNXTCHG?where we use this keyword?what perpuse we use this?Can you tell me in real time senario with example? And in 7 specification(RPG/400)what is the mandatory specification using programs?
Define distributed queries. can you explain me as soon as possible
hi this is uday i want prepare for nic exam if any one have previous question papers please send me or atlest guide me how to prepare my ID is udaykiran4u@in.com
10.Define filters,binary to hexadecimal,hexadecimal to decimal?
I am looking for NIC Sample papers or any patern of questions/ syllabus plz, send me on hamid.khan135@yahoo.in Regard
hi i am jyoti i have done sap training in sd and master degree in economics have 2 year exp as enduser in (gdms)and 1 year as sd consultant.as contract basis now what i can do for getting job in it industry