answersLogoWhite

0


Best Answer

#include
#include
void main()
{
int a,b;
clrscr();
printf("Enter two numbers: ");
scanf("%d%d",&a,&b);
printf("Multiplication of %d and %d is = %d ",a,b,a*b);
getch();
}

User Avatar

Wiki User

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

Wiki User

13y ago

/*this is a program written by bollapragada veera venkata manikanta for adding 2 numbers*/

#include<stdio.h>

main()

{

float a,b,c;

printf("\nENTER TWO NUMBERS FOR ADDING:\n");

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

c=a+b;

clrscr();

printf("%f\n",a);

printf("+\n");

printf("%f\n",b);

pritntf("---------------\n");

printf("%f\n",c);

printf("----------------\n");

getch();

}

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

#include<stdio.h>

main()

{

int a,b,c,sum,avg;

clrscr();

printf("enter the values of a,b,c:");

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

sum=a+b+c;

avg=sum/3;

printf("%d",avg);

getch();

}

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

#include

using std::cin;

using std::cout;

using std:: endl;

int main()

{

cout << "Enter a first number: ";

int num1 = 0;

cin >> num1;

cout << "Enter a second number: ";

int num2 = 0;

cin >> num2;

cout << "\nYou have entered " << num1 << " and " << num2 << endl;

cin.get();

cin.get();

return 0;

}

*The program was complied and tested in VS2010

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

I found some answers related with this question at "C Programming" blog. This is a programming site for beginners or student.

The web address of that blog is : cprogramming-bd.com/c_page4.aspx#ODD%20Numbers

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

This is a homework question and does not deserve an answer because you will learn nothing.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a C plus plus program to read two integers and display them Use cin and cout statements?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a program to display the name of days when a user enters a number?

write a program to display your name age class schoolname e-mail 2hobby based on choice


How can program for c language?

first think of the logic and then write the statements


Write a program to display your name on computer screen?

Faisal


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


How do you write a program to read set of numbers using by an array and display the ascending order of the given input numbers?

To write a C++ program to display the student details using class and array of object.


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 a program which takes the temperature in farhenheightthe program should display the farhenheight temperature as well as centigrade C equals?

Write a program which takes the temperature in farhenheight.the program should display the farhenheight temperature as well as centigrade. C= (f-32)*5/9


Write c programs to display 10 line biodata?

A C++ program can be used to write C programs that will display 10 lines of biodata. Many types of C programming can be written with a C++ program.


Write a shell program to check and display 10 leap years?

dono


Write a program in c to display welcome to the world of c sharp?

#include&lt;stdio&gt; #include&lt;conio&gt; class program { namespace display { console.println("write your text"); } } correct me if im wrong im a new programmer.


How do you write a program using if statements?

Use a text-editor like notepad, editpad, etc.


What are the individual instructions that you use to write a program in a high-level programming language called?

Statements.