Logo 
Search:

Assembly Language Forum

Ask Question   UnAnswered
Home » Forum » Assembly Language       RSS Feeds

Simple addition and subtraction...

  Asked By: Hyunseo    Date: Mar 31    Category: Assembly Language    Views: 3830
  

Hi. I need to make a program that will accept a input from
the user repeatedly until I input + or - sign. Then program will get another second input again till i put "=" sign.
The output will be sum or subtraction depend on what sign I put earlier. both input & output is using Decimal.


Simply
input : 1st input 2nd input = output
_________ + _________ = ________

i have done until accepting input.. but i don't how to print
out the output..

1234 + 123 - 243 = xxxx
1 - 232 + 24235 = xxxxx
5555 + 333 + 222222 = xxxxxx
5 + 2 - 4 + 10 - 2 = xx

something like these...

Share: 

 

1 Answer Found

 
Didn't find what you were looking for? Find more on Simple addition and subtraction... Or get search suggestion and latest updates.




Tagged: