1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
myrzilka [38]
3 years ago
13

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

Computers and Technology
1 answer:
klio [65]3 years ago
7 0
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;
}
You might be interested in
a 2x4 line decoder with enable is implemented using nand gate only. how many nand gate is needed to construct this line decoder?
arsen [322]

6 NAND gates are needed to construct this line decoder when a 2x4 line decoder with enable is implemented using nand gate only.

What is NAND gate?

The NAND gate is a hybrid of the AND and NOT gates. They are linked in a cascade fashion. It is also known as the Negated And gate. Only when their outputs are high or true does the NAND gate provide a false or low output. The NAND gate is necessary because it is used to implement various types of boolean functions.

The NAND gate has the functional completeness property. The NAND gate's function completeness means that it can be used to implement any type of gate. It functions as an OR, NOR, and AND gate.

To learn more about NAND gate, visit: brainly.com/question/25783048

#SPJ4

8 0
1 year ago
Which of the following statements best deceive the relationship between carrying capacity and population size
Andrej [43]

Hey lad, your questions options should be:

a. Carrying capacity increases population size.

b. Carrying capacity determines maximum populations size.

c. Population size is not affected by carrying capacity.

d. Population size increases the carrying capacity.

And B: Carrying capacity determines maximum populations size should be the right answer.

hope you get a victory royale with cheese on your assignment


4 0
4 years ago
What is GND and what color wire do we connect to GND? (this is like for circuits and stuff btw)
fgiga [73]
Ground wire and i believe it is yellow and green
7 0
3 years ago
Which of these is a valid use of the Reply All feature?
zalisa [80]

Answer:

I think is None of this ,

6 0
3 years ago
Sal Kan earned $3,000.00, But he is only getting $1,585.00 on his pay check to
svetlana [45]

Answer:

Usually, it's because of taxes and insurance.

3 0
3 years ago
Other questions:
  • What is used for World Wide Web?
    7·1 answer
  • Host to IP address lookup and its reverse lookup option are very important network services for any size network. It is also how
    14·1 answer
  • zeroIt is a function that takes one argument and returns no value. The function stores the value 0 back into the parameter. x is
    8·1 answer
  • Which principle of animation deals with imparting a unique identity to the animated character?
    5·1 answer
  • You are required to design a 4-bit even up-counter using D flip flop by converting combinational circuit to sequential circuit.
    15·1 answer
  • What quantities are measured by the following sensors:
    9·1 answer
  • You are required to write a calculator for Geometric shapes(Circle, Square, and Rectangle). The basic idea is that you willprovi
    7·1 answer
  • D) Informal high level descuption of an algorithm in english kcalled
    9·2 answers
  • Please help me ASAP! Here is the question.
    15·1 answer
  • Hich of these statements is a value statement?
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!