to print 1 to 10 numbers using do while loop

Answer Posted / pranav

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

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have recieved an interview call from HECL that is Heavy Engineering Corporation Ltd, Ranchi , Jharkhand. Can you please provide me some Electronics and Communication questions for preparation as early as possible since I am left with just one week.

1604


Explain what are the main advantages of synchronous circuit?

510


Explain difference between dcs & plc & scada?

560


how does polarised capacitor works?at which situation in circuit it is used

1560


What is the forbidden energy gap? How does it occur?

622






Name some of the voltage driven (voltage controlled) devices?

761


define inter-base resistance

746


What is the frequency range of satellite communication?

530


We use PSWA card in which case?

1606


how to determine AC frequency through hardware ?

2491


Define what is a high-pass filter?

584


hi my name is saikiran ,iam an betch in electronic and communication i got i-20 in npu and iam having 24 backogs gre 860 ielts 5.5,how i should define my seif so please give me appropriate answer i need some help

1769


What is the difference between edge triggered flip flop and level triggered flip flop?

590


Calculator battery power goes down to 1V from 1.6V in 15 days... What could be the reason?

2020


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

608