Important Notice:

Course Content
Building IoT Applications (Chapter-4) M4-R5.1
About Lesson

Example:

#include <stdio.h>

#include <conio.h>

void 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);

}

 

 

Output

a+b = 13

a-b = 5

a*b = 36

a/b = 2

Remainder when a divided by b=1

 

error: Content is protected !!