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 TOTAL & AVERAGE IN THE ARRAY
#include stdio.h>
#include conio.h>
#include string.h>
void main()
{
int i=0,n[100],limit=0,a=0;
float b;
clrscr();
for(i=0;i<100;i++)
n[i]=0;
}
printf("\nENTER THE LIMIT OF ELEMENTS: ");
scanf("%d",&limit);
for(i=0;i { printf("\nENTER THE %d ELEMENT: ",i+1); scanf("%d",&n[i]); a=n[i]+a; } b=a/i; printf("\nTHE TOTAL IS %d",a); printf("\nTHE AVG OF ALL NO IS %f",b); getch(); } OUTPUT : ENTER THE ELEMENTS : 3 ENTER THE 1 ELEMENTS : 10 ENTER THE 2 ELEMENTS : 10 ENTER THE 3 ELEMENTS : 10 THE TOTAL IS 30 THE AVG. OF ALL ELEMENTS : 10.000
printf("\nENTER THE %d ELEMENT: ",i+1);
scanf("%d",&n[i]);
a=n[i]+a;
b=a/i;
printf("\nTHE TOTAL IS %d",a);
printf("\nTHE AVG OF ALL NO IS %f",b);
getch();
OUTPUT :
ENTER THE ELEMENTS : 3
ENTER THE 1 ELEMENTS : 10
ENTER THE 2 ELEMENTS : 10
ENTER THE 3 ELEMENTS : 10
THE TOTAL IS 30
THE AVG. OF ALL ELEMENTS : 10.000
Make a list of functions that are standard in C++. You must include each of the following for each function: Name of function Its parameters Data type it returns
I would like to get you to collaborate in my project. We want a C programmer to Develop applications for Windows, the first application may be an Instant messenger encrypted in a w
A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome
Record separation problem Let us assume that a particular database program manages a simple mailing list which consists of one record for each person on the list, and a number of f
Explain each of the algorithms in a way that would be understandable to an intelligent person who is not familiar with programming. You should not use any code (or even pseudo code
program for decode the encoded numbering format into message
Define Generic Bitwise Operations? Bitwise operators only work on an incomplete number of types int and char. It turns out there's above one kind of int. In particular there's
What is difference between require_once (), require(), include()? require() includes and evaluates a specific file, if file isn't found then it shows a Fatal Error. require_
planning the solution
Write a ''C'' program to accept any 3 digit integer number from the keyboard and display the word equivalent representation of the given number.
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