answersLogoWhite

0


Best Answer

#include <stdio.h>

int main (void) { puts ("123 894 765"); return 0; }

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How to code a program to print 123 894 765 when input is 123 456 789?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you create a calculator on qbasic?

I was able to create a login program in qbasic with this simple code: cls 1 input "Username: " , username$ if username$ &lt;&gt; "Define what you want your name to be here (use the quotes)" then goto 1 else input "Password: " , password$ if password$ &lt;&gt; "Again define using quotes" then goto 1 else print "You have successfully logged in!" Hope this helps! === I would have rewritten the above code...-without using outdated line numbers/being combined together with goto statements-...as being the following... '*** set username/password... userName$="abc" passWord$="123" '*** get username/password DO CLS PRINT "Log in..." PRINT INPUT "Username: ", guessUserName$ INPUT "Password: ", guessPassWord$ LOOP UNTIL guessUserName$=userName$ AND guessPassWord$=passWord$ '*** print welcome screen... CLS PRINT TIME$ + " " + DATE$ PRINT PRINT "Congratulations, "; userName$; ", you have successfully logged in!"


C program to print 1 12 123 1234?

#include &lt;stdio.h&gt; int main (void) { puts ("1 22 333 4444 55555"); return 0; }


What is program of table in GW basic?

Program code for Creating Two Table for Two number Given By User:Codes10 Input " Enter 1st Number for the Table: ", A20 Input Enter 2nd Number: ", B30 For I =1 To 1040 Print A " * " I " = " A*I TAB(20) B " * " I " = " B*I50 Next I60 ENDOutput(assume that given numbers are 3 and 4 for output)3*1=3 4*1=43*2=6 4*2=83*3=9 4*3=123*4=12 4*4=163*5=15 4*5=203*6=18 4*6=243*7=21 4*7=283*8=24 4*8=323*9=27 4*9=363*10=30 4*10=40


How do you print the middle number of a 3digit number using c?

it is int n=123; printf ("%d", (n/10)%10);


Write a java program to print the following output using the for loop 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5?

12345 1234 123 12 1

Related questions

What is ford engine code 123?

Trouble code P0123 means:Throttle/pedal position sensor/switch A circuit high input


How do you create a calculator on qbasic?

I was able to create a login program in qbasic with this simple code: cls 1 input "Username: " , username$ if username$ &lt;&gt; "Define what you want your name to be here (use the quotes)" then goto 1 else input "Password: " , password$ if password$ &lt;&gt; "Again define using quotes" then goto 1 else print "You have successfully logged in!" Hope this helps! === I would have rewritten the above code...-without using outdated line numbers/being combined together with goto statements-...as being the following... '*** set username/password... userName$="abc" passWord$="123" '*** get username/password DO CLS PRINT "Log in..." PRINT INPUT "Username: ", guessUserName$ INPUT "Password: ", guessPassWord$ LOOP UNTIL guessUserName$=userName$ AND guessPassWord$=passWord$ '*** print welcome screen... CLS PRINT TIME$ + " " + DATE$ PRINT PRINT "Congratulations, "; userName$; ", you have successfully logged in!"


C program to print 1 12 123 1234?

#include &lt;stdio.h&gt; int main (void) { puts ("1 22 333 4444 55555"); return 0; }


How many ridges does the average human adult have on one finger?

Index finger finger print ridges:Males: 142-146Females: 123-124Mean total is 144 and 124Index finger finger print ridges:Males: 142-146Females: 123-124Mean total is 144 and 124


What is the three code in the crew?

123


Where can one order custom business brochures?

One can order custom business brochures from Vistaprint. One can also order these types of brochures from Print Pelican, You Print, Print Runner, 123 Print and PS Print.


What is the cheat code for the last stand?

123


What is the unlock code for polar tubing?

123


What is the code for the toolbox in exmortis 2?

123


What is the DVD code for how to train your dragon?

123


What is the C program for heap sort using recursion?

123


What the serial code for Naruto Naiteki Kensei?

123