Skip to content

Commit 5899e84

Browse files
Update README.md
1 parent 1008151 commit 5899e84

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -201,39 +201,39 @@ Variable `c` contains a value at a specific time. It was changed in the
201201
program three times.
202202

203203
### Arithmetic Operators Sample Program
204-
```
204+
```c
205205
#include <stdio.h>
206206

207207
int 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

229229
The 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

0 commit comments

Comments
 (0)