#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,avg;
printf("\n enter any two numbers:");
scanf("%d%d",&a,&b);
avg=(a+b)/2;
printf("avg=%d",avg);
getch();
}
#include<conio.h>
void main()
{
int a,b,avg;
printf("\n enter any two numbers:");
scanf("%d%d",&a,&b);
avg=(a+b)/2;
printf("avg=%d",avg);
getch();
}
No comments:
Post a Comment