C Program Add Two Numbers After User Input
Question: Write a Program which ask user to input 2 integers then calculate and print their average?// Online C compiler to run C program online
#include <stdio.h>
void main()
{
int a, b, c;
printf("Enter the two intgers");
scanf("%d %d",&a,&b);
c=(a+b)/2;
printf("avergae is %d",c);
}
Categories: c programming c programming c programming c programming