C++ Program .Write a program to display average.

#include<stdio.h>
#include<conio.h>
void main()
{
int avg,sub1,sub2,sub3;
clrscr();
printf("\n enter the value of sub1");
scanf("\n %d", &sub1);
printf("\n enter the value of sub2");
scanf("\n %d",&sub2);
printf("\n enter the value of sub3");
scanf("\n %d",&sub3);
avg=(sub1+sub2+sub3)/3;
printf("\n %d display avg of",avg);
getch();
}