What is the diffrent between while and do while statement ?
Answer Posted / shwetha karkera
In WHILE STATEMENT, the condition is tested first, and then
the statements are executed if the condition turns out to
be true. hence, it is calles as PRE-TESTED LOOPING
CONSTRUCT.
In DO WHILE STATEMENT,the statements are executed for the
first time and then the conditions are tested. if the
condition turns out to be true,then the statements are
executed again.hence it is called as POST-TESTED LOOPING
CONSTRUCT.
SYNTAX FOR WHILE STATEMENT:
while(condition)
{
statement;
}
SYNTAX FOR DO WHILE STATEMENT:
Do
{
statement;
}
while(condition)
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Explain what are the different data types in c?
What is difference between main and void main?
Explain what is the benefit of using const for declaring constants?
please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
What is the difference between variable declaration and variable definition in c?
What are pointers?
Are comments included during the compilation stage and placed in the EXE file as well?
What is #line in c?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
What is the difference between printf and scanf )?
Is javascript written in c?
Differentiate between a structure and a union.
Where are some collections of useful code fragments and examples?