Update block of code to be highlighted as C (#22588)

This commit is contained in:
Miftah Mizwar
2018-11-21 06:31:50 +07:00
committed by Manish Giri
parent 059512846e
commit e9004f3e21

View File

@ -47,30 +47,32 @@ title: Operators
int b = a--; // postfix operator; a = 6, b = 7
int c = --a; // prefix operator; a = 5, c = 5
```
// C Program to demonstrate the working of arithmetic operators
C Program to demonstrate the working of arithmetic operators
```C
#include <stdio.h>
int main()
{
int a = 9,b = 4, c;
c = a+b;
printf("a+b = %d \n",c);
c = a-b;
printf("a-b = %d \n",c);
c = a*b;
printf("a*b = %d \n",c);
c=a/b;
printf("a/b = %d \n",c);
c=a%b;
printf("Remainder when a divided by b = %d \n",c);
return 0;
}
```
## 2. Relational Operators
- `==` Equal - true when the two operands are equal