Sunday, 7 April 2013

programe to find average in C

void main()
int  a,b,c,av;
printf("enter marks of three different subject");
scanf("%d %d %d",&a,&b,&c);
av= (a+b+c)/3;

printf("\nThe average of three subject is = %d",av);

Share this post
  • Share to Facebook
  • Share to Twitter
  • Share to Google+
  • Share to Stumble Upon
  • Share to Evernote
  • Share to Blogger
  • Share to Email
  • Share to Yahoo Messenger
  • More...


Post a Comment