to print 1 to 10 numbers using do while loop

Answer Posted / balamurugan

int i=1;
do
{
printf("%d",i);
i++;
}
while(i<=10);

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why are u hiring electronics

1095


What are the various logic gates?

616


what is the basic steps for designing an ups,inverters, and battery connections for series and parrallel connections in ups

1753


Explain to find conductivity?

549


Define what is the importance of valence shell and valence electrons?

623






why germanium is most suitable for DWDM systems?

2326


Why half-wave rectifiers are generally not used in dc power supply?

873


What does the voltmeter in ac mode show?

601


Explain the difference between inductance and resistance?

488


Differentiate between intrinsic semiconductors and intrinsic semiconductors?

547


Define what are the main purposes for which a cc amplifier may be used.

623


WAP to print a given number [0-1000] in words. For example, 123 as One Hundred and Twenty Three

1653


Explain what kind of negative feedback is present in a noninverting op-amp.

570


Why cc configuration is called a voltage buffer? Define what is other name?

693


if building "b" height casts a shadow "f ' feet long . the same day a tree "t" feet height will cast a shadow how many feet long ? a)ft/b b)fb/t c)b/ft d)tb/f e)t/fb

1707