#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();
}
/*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();
}
#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();
}
#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
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 is a homework question and does not deserve an answer because you will learn nothing.
first think of the logic and then write the statements
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
Write a program to find the number and sum of all integers from 100 to 300 that are divisible by 11
To write a C++ program to display the student details using class and array of object.
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 a program to display your name age class schoolname e-mail 2hobby based on choice
first think of the logic and then write the statements
Faisal
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
To write a C++ program to display the student details using class and array of object.
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 farhenheight.the program should display the farhenheight temperature as well as centigrade. C= (f-32)*5/9
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.
dono
#include<stdio> #include<conio> class program { namespace display { console.println("write your text"); } } correct me if im wrong im a new programmer.
Use a text-editor like notepad, editpad, etc.
Statements.