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 = 5, c;

c = a;

printf(“c = %d n”, c);

c += a; // c = c+a

printf(“c = %d n”, c);

c -= a; // c = c-a

printf(“c = %d n”, c);

c *= a; // c = c*a

printf(“c = %d n”, c);

c /= a; // c = c/a

printf(“c = %d n”, c);

c %= a; // c = c%a

printf(“c = %d n”, c);

}

Output

c = 5
c = 10
c = 5
c = 25
c = 5
c = 0

error: Content is protected !!