#include <stdio.h>
void main ()
{
int a,b,c,d;
printf("enter number a= ");
scanf("%d", &a);
printf("enter
number b= ");
scanf("%d", &b);
printf("enter number c= ");
scanf("%d", &c);
printf("enter number d= ");
scanf("%d", &d);
printf("%d+%d+%d+%d=%d\n", a,b,c,d, a+b+c+d);
printf("(%d+%d+%d+%d)/4=%d", a,b,c,d,
(a+b+c+d)/4);
}
Comments
Post a Comment