File tree 1 file changed +13
-13
lines changed
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
201
201
program three times.
202
202
203
203
### Arithmetic Operators Sample Program
204
- ```
204
+ ``` c
205
205
#include < stdio.h>
206
206
207
207
int main () {
208
208
int a = 10;
209
209
int b = 5;
210
210
int result;
211
211
212
- printf("where a = %d & b = %d \n", a, b);
212
+ printf ("where a = %d & b = %d\n", a, b);
213
213
214
214
result = a + b;
215
- printf("a+ b = %d \n", result);
215
+ printf ("a + b = %d\n", result);
216
216
result = a - b;
217
- printf("a- b = %d \n", result);
217
+ printf("a - b = %d\n", result);
218
218
result = a * b;
219
- printf("a* b = %d \n", result);
219
+ printf("a * b = %d\n", result);
220
220
result = a / b;
221
- printf("a/ b = %d \n", result);
221
+ printf("a / b = %d\n", result);
222
222
223
223
return 0;
224
224
}
225
225
```
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.
228
228
229
229
The result is:
230
230
231
231
```
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
237
237
```
238
238
239
239
### Comparison Operators Sample Program
You can’t perform that action at this time.
0 commit comments