answersLogoWhite

0


Best Answer

#include<stdio.h>

int main(void) {

int a, b;

printf("Enter two numbers: ");

scanf("%d\n%d\n", &a, &b);

printf("%d + %d = %d\n", a, b, a+b);

return 0;

}

User Avatar

Wiki User

7y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Step 1: Read the first number

Step 2: Read the second number

Step 3: Compute their sum

Step 4: Display the sum

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write an algorithm that reads 2 numbers from keyboard and displays their sum.?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write an algorithm and draw a corresponding flowchart to search a number in the given list of numbers and also display its position?

please give me an algorithm and a corresponding flow chart that displays list of numbers from 1 to 20.


Can you write an algorithm to find the beast numbers?

maybe


How to write an algorithm that accepts five numbers and displays the sum and average of the numbers?

1.Start Algorithm 2.Enter first number 3.Enter second number 4.Enter third number 5.Enter fourth number 6.Enter fifth number 7.Add five number 8.display five number / 2 9.Display result 10.End Algorithm


Write algorithm compute sum of square of N numbers?

1. Design an algorithm to compute sum of the squares of n numbers?


Write an Assembly language program which implements sorting algorithm both ascending and descending order and display those numbers with certain delay say of 5sec between successive displays?

das


How can I write a program to display prime numbers from 1 to 100?

Write a function that implements an algorithm that checks to see if a particular integer is prime (returning a boolean). Write a program that uses that function on each number from 1 to 100, and if true, displays that number.


Write an algorithm to check whether a number is a prime number or not?

You can write out this algorithm. This will then be programmed into the device to make determining prime numbers easier.


Write algorithm and draw flowchart to find the sum of even numbers?

jgfujtf


Write an algorithm to print sum of all even numbers?

Start print "the sum of all even numbers is infinite" end


What is algorithm to write algorithm to the program to access a pointer variable in structure?

Here is the algorithm of the algorithm to write an algorithm to access a pointer in a variable. Algorithmically.name_of_the_structure dot name_of_the _field,eg:mystruct.pointerfield


Write an algorithm to find the root of quadratic equation?

Write an algorithm to find the root of quadratic equation


Could you Write a program for 8086 microprocessor that displays on the monitor the average of 2 numbers from an array?

How to write a program for mouse in microprocessor?