Sunday, 7 April 2013

programe to find average in C


#include<stdio.h>
#include<conio.h>
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);
getch();
}

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...

0 comments:

Post a Comment