If you are using any software then below program will not give an error, but if you are using **TURBO C** then you have to make some changes like: void main() and some function like clrscr() or getch().

#include<stdio.h> main() { int a=5,b=20; int add,sub,mul,div,mod; //Addition add=a+b; printf("a + b =%d\n",add); //Subtraction sub=a-b; printf("a - b =%d\n",sub); //Multiplication mul=a*b; printf("a * b =%d\n",mul); //Division div=a+b; printf("a / b =%d\n",div); //Mod mod=a%b; printf("a mod b =%d",mod); }

OUTPUT:

a + b =25 a - b =-15 a * b =100 a / b =25 a mod b =5