Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
C program for function of average
int average(int);
void main()
{
int max=0,c=0;
clrscr();
printf("ENTER THE LIMIT OF INPUT FOR AVERAGE: ");
scanf("%d",&max);
c=average(max);
printf("THE AVERAGE OF %d DIGIT IS %d",max,c);
getch();
}
int average(int i)
int j=0,n=0,sum=0;
for(j=1;j<=i;j++)
printf("ENTER THE DIGIT: ");
scanf("%d",&n);
sum=sum+n;
sum=sum/i;
return(sum);
OUTPUT :
ENTER THE LIMIT OF INPUT FOR AVG : 5
ENTER THE DIGIT: 5
ENTER THE DIGIT : 10
ENTER THE DIGIT : 15
ENTER THE DIGIT : 20
THE AVERAGE OF 5 DIGIT IS 12
2. a) Define a structure to store roll no, name and marks of a student. b) Using the structure of Q2. a), above write a ''C'' program to create a file "student.dat". There must be
6999066263304447777077766622337778 -----> message sent by the first smuggler. my name is robert---------> message decoded by the second smuggler. Where ‘0’ denotes the "space".
Default assignment operator mange assigning one object to another object of the same class. It is member to member copy as shallow copy.
1. write a program named InputMethodDemo2 that eliminates the repetitive code in the InputMethod() in the InputMethodDemo program. Rewrite the program so the InputMethod()contains
Encapsulation and Data Hiding The property of being a self-contained unit is known as encapsulation. The idea that the encapsulated unit can be used without knowing how it work
AREA UNDER THE CURVE USING C
i have an array of structs, and am trying to make a pointer that can point to a certain struct within the array
A: Use a member while you can and a friend when you need to. Sometimes friends are better syntactically (e.g., in class Fred, friend functions let the Fred parameter to be secon
Write a program that computes the cost of a long distance call. The cost of the call is determined according to the following rate schedules. a. A call made between 8:00 AM and
What are all of the implicit member functions of the class? Or what are all of the functions that compiler implements for us if we don't describe one? A: 1. copy ctor
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd