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