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

What else can I help you with?

Related Questions

Shell program for gcd of three given numbers?

write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html


How many three digit numbers is average of three digits equal to 2?

21


What is the average number of publications for PhD candidates in your program?

The average number of publications for PhD candidates in our program is three.


How many three even digit numbers by using 12457 if each digit is used once?

None, because you do not have three even digits. None, because you do not have three even digits. None, because you do not have three even digits. None, because you do not have three even digits.


How do you find average in?

If your finding the average with three numbers on etc'90, 105 120' You'll add them together 90+105+120=315 and divide by three. So the average height will be 105


How many strings of three decimal digits Have exactly three digits that are 9?

There can be only one.


323.565 rounded to the three significant digits?

323.565 rounded to three significant digits is 323.56


How many significant digits are in this number is 0.00 909?

0.00909 has three significant digits.


How many scientific digits are in 5.40?

There are three significant digits. I am not sure what scientific digits are!


How many digits in runescape membership card?

There are 10 digits. first there are three digits then space then another three then space and then the last four digits. (example: xxx xxx xxxx)


How many digits are in 600?

Three of them.


Why would a person's SSN have a number in front of it?

A Social Security Number should only be composed of nine digits. Three digits then a dash, three more digits then another dash, and three final digits should be the only numbers.