answersLogoWhite

0

#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

8y ago

What else can I help you with?

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


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


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.


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 algorithm and draw flowchart to find the sum of even numbers?

jgfujtf


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 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?


A Write the algorithm to concatenate two given strings?

a write the algorithm to concatenate two given string