From 44661a3e06ac56bb35cd8293cfb139dc3fe31379 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 1 May 2019 11:06:29 -0400 Subject: [PATCH] Fixed block code and syntax highlighting (#29977) This commit fixes the example code to demonstrate the working of arithmetic operators so that the entire code, from initial comment to ending curly brace for main(), is in a Markdown code block and is syntax highlighted. Spacing around the include and int initialization was improved as well. --- guide/english/c/operators/index.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/guide/english/c/operators/index.md b/guide/english/c/operators/index.md index 2ecf12c064..a29f54969c 100644 --- a/guide/english/c/operators/index.md +++ b/guide/english/c/operators/index.md @@ -50,13 +50,14 @@ Operators in C specifies the Mathematical, Conditional and Logical Operations to 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; - + int a = 9, b = 4, c; + c = a+b; printf("a+b = %d \n",c);