Computer Science, asked by biswajitdey6171, 11 months ago

B. Write an algorithm and draw a flowchart to accept two numbers.
If the two numbers are equal, then find the sum. Otherwise find
the product

Attachments:

Answers

Answered by chmohit8195
19

Answer:Algorithm:

start

initialize two variables a,b as int

input a,b, value from the user

start if a is equal to b the initialize sum as int

add a and b,store the value in sum variable

print sum

else initialize product as int

multiply a with b and store the result in product variable

print product

end if condition

end program

----Hope you got- what you wanted, if you liked my algorithm,mark as brainliest,

Similar questions