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
how many types of bytes are there???
What is the difference between COM and CORBA?
Given a Binary Search Tree, write a program to print the kth smallest element without using any static/global variable. You can?t pass the value k to any function also.
hoe to data grid use in sql server 2000?
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.
along with oracle which language will be beneficial to have knowledge with,java,.net,since i m doing oracle have appeared for 8th sem BEIT,plz suggest
Suppose server object is not loaded into the memory, and the client request for it , what will happen?
< No Frames > tag is used for
how do find the user exit for selected feild whatis the process and can u plz explain it
How to call a C++ function which is compiled with C++ compiler in C code?
what is the difference between Windows application and Unix application?
Write a program to create a process in UNIX
Hello Experts, What is the difference between move and move corresponding exactly? please post me asap
Write a shell program. Enter number of days from keyboard. Find out the number of years, month and days it contains
EXPLAIN UNARY OPEARATORS