From e9004f3e210e4c9f53ac26eef841a1704f65fb77 Mon Sep 17 00:00:00 2001 From: Miftah Mizwar Date: Wed, 21 Nov 2018 06:31:50 +0700 Subject: [PATCH] Update block of code to be highlighted as C (#22588) --- guide/english/c/operators/index.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/guide/english/c/operators/index.md b/guide/english/c/operators/index.md index 3f1b46b329..65d90eaa4a 100644 --- a/guide/english/c/operators/index.md +++ b/guide/english/c/operators/index.md @@ -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 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