answersLogoWhite

0

#include<stdio.h>

main()

{

long int num1, num2;

long int sum=0;

printf("Enter Value=");

scanf("%ld", &num1);

printf("Enter Value=");

scanf("%ld", &num2);

sum=num1+num2;

printf("The Result is=%ld", sum);

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is an integer of 71 but the difference of 3?

71 is, itself an integer but to find a difference you require 3 numbers.71 is, itself an integer but to find a difference you require 3 numbers.71 is, itself an integer but to find a difference you require 3 numbers.71 is, itself an integer but to find a difference you require 3 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


What is the program to find sum of n natural numbers in c plus plus?

Initialise an unsigned integer to zero. As each number is input, increment the running total accordingly. When all numbers are input, display the total.


What is the LCM of integer 24?

You need at least two numbers to find an LCM.


How to write a C program to find largest 2 numbers using pointers?

program to find maximum of two numbers using pointers


What is the LCM of 1.70997595?

You need at least two numbers to find an LCM and they both have to be integers, but the LCM of 1 and any positive integer is that integer.


Wrie a program to receive an integer and find its octal equivalant?

Use %o


How do you write a VBnet program to find the prime numbers between 100 to 200?

VBnet program to find the prime numbers between 100 to 200?


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 work out missing number addition if the bottom number is smaller than the top number?

you find out missing numbers in addition by subtracting the numbers that are writen


If the sum of two consecutive integers is nineteen find the smaller integer?

The numbers are 9 and 10.


What procedures will find the difference a b of two numbers where a and b represent any integer?

Subtraction