File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -201,39 +201,39 @@ Variable `c` contains a value at a specific time. It was changed in the
201201program three times.
202202
203203### Arithmetic Operators Sample Program
204- ```
204+ ``` c
205205#include < stdio.h>
206206
207207int main () {
208208 int a = 10;
209209 int b = 5;
210210 int result;
211211
212- printf("where a = %d & b = %d \n", a, b);
212+ printf ("where a = %d & b = %d\n", a, b);
213213
214214 result = a + b;
215- printf("a+ b = %d \n", result);
215+ printf ("a + b = %d\n", result);
216216 result = a - b;
217- printf("a- b = %d \n", result);
217+ printf("a - b = %d\n", result);
218218 result = a * b;
219- printf("a* b = %d \n", result);
219+ printf("a * b = %d\n", result);
220220 result = a / b;
221- printf("a/ b = %d \n", result);
221+ printf("a / b = %d\n", result);
222222
223223 return 0;
224224}
225225```
226- Since these are arithmetic operators, they
227- will do the basic arithmetic operations.
226+
227+ Since these are arithmetic operators, they will perform basic arithmetic operations.
228228
229229The result is:
230230
231231```
232- where a = 10 & b = 5
233- a+ b = 15
234- a- b = 5
235- a* b = 50
236- a/ b = 2
232+ where a = 10 & b = 5
233+ a + b = 15
234+ a - b = 5
235+ a * b = 50
236+ a / b = 2
237237```
238238
239239### Comparison Operators Sample Program
You can’t perform that action at this time.
0 commit comments