ramaoliya2020
ramaoliya2020 ramaoliya2020
  • 06-05-2021
  • Computers and Technology
contestada

write an algorithm and flowchart to calculate sum of two given numbers​

Respuesta :

abigailyankey
abigailyankey abigailyankey
  • 06-05-2021
Step 1: Start
Step 2: Declare variables num1, num2 and sum.
Step 3: Read values for num1, num2.
Step 4: Add num1 and num2 and assign the result to a variable sum.
Step 5: Display sum
Step 6: Stop
#include
int main()
{
int num1,num2,sum;
printf("\n Enter the first number to be added: ");
scanf("%d",&num1);
printf("\n Enter the second number to be added: ");
scanf("%d",&num2);
sum = num1 + num2;
printf("\n The sum of two numbers is: %d",sum);
return 0;
}
Answer Link

Otras preguntas

a 20.0g sample of an element contains 2.16x10^23 atoms identify the element
Solve for the indicated variable. ax + r = 6 for r
I need help on this assignment
A value is important to a society because it is A the measure used to determine how good a person is. B an amount of goods or services considered reasonable. C
Drag and drop the correct number to complete the equation. 434÷234=Response area Drag and drop the correct number to complete the equation. 434÷234=Response are
At what frequency does the Sun emit the most radiation?
Austin is watching a football game.His team loses 9 yards then gains 5 yards.He doesn't watch the next play, but afterwards he sees that his team now has a tota
How do you know that a bowling ball is a soild
Why are assembly lines important?
List the 4 structures that all cells have.