answersLogoWhite

0

#include<stdio.h>

#include<conio.h>

void main()

{

int i,j,k,a[10],n;

clrscr();

scanf("%d",&n);

for(i=0;i<3;i++)

{

n=n%10;

j=0;

a[j]=n;

j++;

}

for(j=0;j>3;j++)

{

a[k]=0;

a[k]=a[k]+a[j];

avg=(a[k]/3);

printf("the average value of digit will be %d",avg);

}

getch();

}

}

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
ReneRene
Change my mind. I dare you.
Chat with Rene

Add your answer:

Earn +20 pts
Q: Program in c finding average of two and three digits nos?
Write your answer...
Submit
Still have questions?
magnify glass
imp