How to resolve the algorithm A+B step by step in the Arturo programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm A+B step by step in the Arturo programming language
Table of Contents
Problem Statement
A+B ─── a classic problem in programming contests, it's given so contestants can gain familiarity with the online judging system being used.
Given two integers, A and B. Their sum needs to be calculated.
Two integers are written in the input stream, separated by space(s):
The required output is one integer: the sum of A and B.
Let's start with the solution:
Step by Step solution about How to resolve the algorithm A+B step by step in the Arturo programming language
Source code in the arturo programming language
while ø [
x: map split.words input "give me 2 numbers:" 'x -> to :integer x
print add x\0 x\1
]
You may also check:How to resolve the algorithm MD5 step by step in the Icon and Unicon programming language
You may also check:How to resolve the algorithm Parsing/Shunting-yard algorithm step by step in the Liberty BASIC programming language
You may also check:How to resolve the algorithm Increasing gaps between consecutive Niven numbers step by step in the Nim programming language
You may also check:How to resolve the algorithm Identity matrix step by step in the PureBasic programming language
You may also check:How to resolve the algorithm Events step by step in the Pulse event programming language