Details of this Paper

Computer C++

Description

solution


Question

Write a program that implement the following algorithm;1. Gets a number into variable A.;2. Gets a number into variable B.;3. If A is different then B;num1 <- A * 10 + B;num2 <- B * 10 + A;Show as an output the value of num1 and num2.;Show as an output the sum of num1 and num2.;Otherwise;num1 <- A * 10 + B.;Show as an output the value of num1.;Show as an output the message:"equals".

 

Paper#73604 | Written in 18-Jul-2015

Price : $22
SiteLock