#include<iostream.h> #include<conio.h> void main() { int a, b, c; clrscr(); cout<<"enter the two numbers"; cin>>a; cin>b; c=a+b; cout<<"Addition of two numbers="<<c; getch(); }
package AddNumbers; public class AddNumbers { public static void main(String[] args) { int Int; int a = 4; int b=5 ; int sum = a + b; System.out.println("Addition of two numbers!"); System.out.println("Sum: " + sum); } }
Logical errors :- These errors occur because of logically incorrect instructions in the program. Let us assume that in a 1000 line program, if there should be an instruction, which multiplies two numbers and is wrongly written to perform addition. This logically incorrect instruction may produce wrong results. Detecting such errors are difficult.
It is used for addition - to add two numbers. Also, to concatenate two Strings (texts) - that is, to make a longer text from two shorter ones.
The simple Assembly Programs: mov ax,15 mov bx,45 add ax,bx int 21 This is a simple Assembley programs that perform addition of two numbers like 15,45 in above example
The result is called the sum of the two numbers. The operation of addition is commutative. This means that the addition of two numbers will give the same sum regardless of the order in which the numbers are added.
ADDITION.
#include<iostream.h> #include<conio.h> void main() { int a, b, c; clrscr(); cout<<"enter the two numbers"; cin>>a; cin>b; c=a+b; cout<<"Addition of two numbers="<<c; getch(); }
To add two numbers together
No, nor under addition, either. The sum or difference of two odd numbers is NOT an odd number.No, nor under addition, either. The sum or difference of two odd numbers is NOT an odd number.No, nor under addition, either. The sum or difference of two odd numbers is NOT an odd number.No, nor under addition, either. The sum or difference of two odd numbers is NOT an odd number.
The summands.
By division
it goes like this addition is when you add two numbers to get the sum
The addends are the numbers that are added together. The answer is the sum.
addition means when you add two or more numbers together.+ subtraction means you subtract two or more numbers together.- multiplication means when you mutiply two one, or more digit numbers together.x division means when you divide two numbers together./
Sum, or total
The summands Also the addends