answersLogoWhite

0

#include

#include

#include

void main()

{

char a;

int firstInt, secondInt, sum;

cout << "Enter two integers/n:";

cin >> firstInt >> secondInt;

sum = firstInt + secondInt;

cout << "The result is: " << sum;

getch(a);

}

User Avatar

Wiki User

17y ago

What else can I help you with?

Related Questions

How do you write a program to input radius of a circle and calculate the area or circumferences of the cirlce?

In which computer language?


Write a program in c that prompt user with following lines add two integers test an integer for odd or even and quit?

write a program in C that prompts the user with the following lines: a) Add two integers c) Compare two integers for the larger t) Test an integers for odd or even q) Quit


Writes a c program to find the sum of all integers between 1 and n?

Write a program to find the number and sum of all integers from 100 to 300 that are divisible by 11


Write Client and server program in C language using UDP?

Write and run a client and a server program in C-language using UDP


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


Write an assembly language program to print a to z on screen?

write a program to print A to Z on screen in c?


Can you write program by c language in dos?

Yes.


Write a program to calculate first?

int first= 1;


Example of Password program code in assembly language?

How to write the program un Assembly language to set a password for personal computers?


Write a program that uses a for statement to calculate and print the product of the odd integers from 1 to 15?

Code example:#include int main(void) { int iOddNum = 0; int iSum = 0; for(iOddNum = 1; iOddNum


Assembly language program for string concatenation using 8086 microprocessor?

write program to concatenating two sting in 8086 assembly language


How can program for c language?

first think of the logic and then write the statements