Find Average by using C language : Simple Basic C Programming | CppDroid for Android - NRTrickHub

Latest Update

Thursday, October 06, 2016

Find Average by using C language : Simple Basic C Programming | CppDroid for Android

Source Code :

#include<stdio.h>
int main()
{
    int A, B=0, C=0, D=0, Average;
    clrscr();
    printf("Enter value of A: ");
    scanf("%d",&A);
    printf("Enter value of B: ");
    scanf("%d",&B);
    printf("Enter value of C: ");
    scanf("%d",&C);
    printf("Enter value of D: ");
    scanf("%d",&D);
 
    Average = (A+B+C+D)/4;
    printf("Average =%d",Average);
 
    return 0;
}

Output :

Enter value of A:23
Enter value of B:53
Enter value of C:32
Entet value of D:12
Average:30




Tag: Cpp Droid, Programming, C languages, C++, Android, Swap, Variable, With, Third, Number, Simple, Basic, Turbo C, C plus plus, Support, Learn, Easy, App, Download

No comments:

Post a Comment