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

Which of the following is not a problem with meta-analyses? a. wanous factors b. inclusion rules c. independence of observations d. file drawer problem
If a broomball team has less than 3 players at game time, What will happen? 1) They will be given a forfeit 2) They will be allowed to play 3) The game will be
What are GAD-7 Anxiety Assessment Results?
In the excerpt we read, Genji's wife Aoi falls ill and dies.a. Trueb. False
Superman throws a 2900 N boulder at an adversary. What horizontal force must Superman apply to the boulder to give it a horizontal acceleration of 11.0 m/s^2?a)
iigegeeguuwiwwopwpqwjjwjajwjajaak
At most, how many 2/5 -inch-long pieces of string can you cut from a 4/5 --inch-long piece of string?Choose the correct answer below.A 1B. 4C. OD. 2
How many molecules are in 6.20 moles caCO3
$349.99 plus 6.75% tax
What are the types of Stabilized Construction Entrances - TC 1's?