answersLogoWhite

0

How do you write a program with do while loop so that the output is 123456 =720

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

Explain why is computer monitor called an output device?

while running the program then the result displayed on the sceen.


C program to print inverse of a given number?

Inversing of a given Number. suppose we gave input 123456 then the output of the program will be 654321./*mycfiles.wordpress.comC program to print inverse of a given number*/#include#includevoid main(){long int n,rn=0,d=0;clrscr();printf("Enter the number\n\n");scanf("%ld",&n);while(n>0){d=n%10;rn=rn*10+d;n=n/10;}printf("%ld",rn);getch();}


Is spreadsheet a document?

Any printed item can be called a document. Usually, related to computer applications, a document referrs to a word processing output, while a spreadsheet referrs to output from a spreadsheet program, like MS Excel.


How do you do in and out in math?

Assuming by in you mean input and out you mean output. Input is the value that goes in while the output is the value you receive. Between these terms is a rule, called the nth term that will always work to help you find the input/output. For example. Our input is 2, and our output is 10 the rule here could be the input multiplied by 5 equals the output, or it can be something extremely difficult and unfathomable even to a banker...


Why is output dc higher than input ac?

Output power can never be more than input power. With a transformer, it is possible to increase the output current (while decreasing the output voltage), or to decrease the output current (while increasing the output voltage).


Can you record a TV program while the TV is turned off?

NO, when you turn off the TV, the output of the TV will also go off.


Is it possible to make a program using for and not with while?

The following cases are all possible:- program without any for and while- program without for- program without while- program with both for and while


How do I prevent Visual C plus plus 2008 from closing my output window when i run a program?

Place a breakpoint on all of your main function's returns. Your program will stop at those points allowing you to inspect the output. Alternatively, redirect the output to a file (project properties > debugging > command arguments). Alternatively, use [CTRL]+[F5] to run the program outside the debugger. Note that the problem itself only occurs while the the program runs within the debugger, but if the program is running to completion in the debugger then it will run to completion outwith the debugger (assuming nothing else changes). You only need to use the debugger when the program's output is producing unexpected results, or you want to step through the code, or examine trace output, or set watches, or look at memory contents, or any other operation that would be classified as a debugging operation. If you don't need the debugger then don't run your programs in it.


What is the difference between penguins and hummingbirds?

Both are birds, however penguins fly in water while hummingbirds fly in air. Penguins live on fish while hummingbirds live on nectar.


Is printer and output?

Yes, a printer is an output device, while a keyboard is an input device.


CPU hit by 60 sec restart Virus Help Also Lost Admin Pass running Wind XP HELP?

This might be a fake. go to start (while the virus is running) run, type shudown -a After that, do the same but type in cmd then type netuser Administrator 123456 The pass is changed to 123456


Difference between force output and Work Output?

Force output refers to the amount of force applied to an object, while work output measures the amount of work done by that force in moving the object over a distance. In other words, force output is the strength or intensity of the force, while work output is the result of that force in regards to the distance the object is moved.