а§°а§Ња§Йа§®а§≤а•Ла§° а§™а•А.а§°а•А.а§Па§Ђ. а§И-а§ђа•Ба§Ха•На§Є
C - Arithmetic Operators

а§µа§ња§µа§∞а§£ :

• C Programming а§Ѓа•За§В а•ђ а§™а•На§∞а§Ха§Ња§∞ а§Ха•З Operators а§єа•Ла§§а•З а§єа•И |
1. Arithmetic Operators(+,-,*,/)
2. Relational Operators(<,>,<=,>=,==,!=)
3. Bitwise Operators(|,&,~,^,<<,>>)
4. Logical Operators(&&,||,!)
5. Assignment Operators(=,<=,>=,|=,+=,-=,*=,/=,&=,^=)
6. Increment/Decrement (++/--)

C Programming а§Ѓа•За§В а§™а§Ња§Ва§Ъ а§™а•На§∞а§Ха§Ња§∞ а§Ха•З Arithmetic Operators а§єа•Ла§§а•З а§єа•И |
2. Subtraction(-)
3. Multiplication(*)
4. Division(/)
5. Modulus(%)

а§Єа•Ла§∞а•На§Є а§Ха•Ла§° :

#include <stdio.h>
#include <conio.h>

void main() {

int a,b,c;

printf("Enter two numbers");
scanf("%d%d",&a,&b);

c=a+b;
printf("\nAddition of a and b is %d",c);

c=a-b;
printf("\nSubtraction of a and b is %d",c);

c=a*b;
printf("\nMultiplication of a and b is %d",c);

c=a/b;
printf("\nDivision of a and b is %d",c);

c=a%b;
printf("\nRemainder of a and b is %d",c);

getch();

}

а§Жа§Йа§Яа§™а•Ба§Я :

Enter two numbers 12 6 (you entered : 12 6)
Addition of a and b is 18
Subtraction of a and b is 6
Multiplication of a and b is 72
Division of a and b is 2
Remainder of a and b is 0