answersLogoWhite

0


Best Answer

/*use "c-free" compiler*/

#include <stdio.h>

main()

{

int a,b,c;

printf("enter the value of a & b");

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

c=a+b;

printf("sum of the two numbers is a+b- %d",c);

getch();

}

User Avatar

Wiki User

โˆ™ 2011-08-21 06:44:58
This answer is:
User Avatar
Study guides

Algebra

20 cards

A polynomial of degree zero is a constant term

The grouping method of factoring can still be used when only some of the terms share a common factor A True B False

The sum or difference of p and q is the of the x-term in the trinomial

A number a power of a variable or a product of the two is a monomial while a polynomial is the of monomials

โžก๏ธ
See all cards
3.74
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
1196 Reviews

Add your answer:

Earn +20 pts
Q: Write c program to find sum of two numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write an assembly language program to find the sum of n numbers using array?

write an assembly language program to find sum of N numbers


How do you write c program to find sum of two numbers?

You add numbers as follows: sum = a + b;


Write java program for sum of ten numbers?

double[] numsToSum; // the numbers you want to find the sum of double sum = 0.0; for(int i = 0; i &lt; numsToSum.length; ++i) { sum += numsToSum[i]; }


Write a program to genarate Fibonacci series upto sum numbers?

Where are the numbers that you want to sum.


Write a program to find the sum of squares of the given number?

Algorithm and Flowcharts for a program to compute the sum of the squares of the numbers for a given range used for loop


Write a C program to find the sum of all prime numbers?

Since there is an infinite set of prime numbers the answer would be infinity.


How. to. write an. algorthim. to find the. sum of. first. 15 natural. numbers?

Write an. Algorthim. To. Find the. Sum. Of. First15 natural. Numbers


How do you find sum of 100 numbers using fortran programme?

The following is for F95 and later (due to the use of intrinsic SUM ): My assumptions: -Your numbers are integers -Your numbers are stored in an array -The numbers you are describing are 0-100 program findSum !I assumed integer, replace this with your data type integer, dimension(100) :: numbers integer :: sumOfNumbers !We populate an array with our numbers !Replace this with your numbers do i=1,(size(numbers)+1) numbers = i end do !We find the sum of those numbers sumOfNumbers = sum(numbers) !We write out the sum to prompt write(*,*) 'Sum is: ', sumOfNumbers end program findSum


Write programme for sum of number given?

write a program to find the sum of squares up to 50


Write a program to find the sum of even numbers from 2 to50?

In Java:sum = 0;for (i = 2; i


Write a program in 8086 assembly language to find the cube of a given number?

Aim: - To write an assembly language program to find sum of cubes of given 'n' numbers.123456789MOV CL, NUMMOV SUM, 00L1: MOV AL, CLMUL ALMUL CLADD AL, SUMMOV SUM, ALLOOP L1ENDResult: Sum of cubes of first 'n' natural numbers is obtained.


How do you write a program to find the sum of n numbers in an array?

In Java: // This program adds all numbers in the array int sum = 0; for (int i = 0; i < myArray.length(); i++) { sum += myArray[i]; }In Java: // This program adds all numbers in the array int sum = 0; for (int i = 0; i < myArray.length(); i++) { sum += myArray[i]; }In Java: // This program adds all numbers in the array int sum = 0; for (int i = 0; i < myArray.length(); i++) { sum += myArray[i]; }In Java: // This program adds all numbers in the array int sum = 0; for (int i = 0; i < myArray.length(); i++) { sum += myArray[i]; }

People also asked