plz answer.... write a program that reads line (using
getline) e.g."345", converts each line to an integer
using "atoi" and computes the average of all the numbers
read. also compute the standard deviation.
Answer / dally
#include<stdio.h
int main()
{
char array[]= "345";
int n;
n = atoi(array);
while(n>1)
{
int sum,aveg,no=1;
n = n%10;
no++;
sum = sum+n;
n=n/10;
}
aveg= sum/no;
printf("Aveg of number %d\n",aveg);
Is This Answer Correct ? | 4 Yes | 0 No |
What is the real difference between arrays and pointers?
27 Answers Hexaware, Logic Pro, TCS,
Write a c program to print the sizes and ranges of different data types in c?
What are inbuilt functions in c?
why Language C is plateform dependent
What is enumerated data type in c?
In C language what is a 'dangling pointer'?
write a program to print data of 5 five students with structures?
how many keywords are available in 'c' language a) 32 b) 34 c) 45 d) 48
what is use of loop?
Explain built-in function?
How can I call a function with an argument list built up at run time?
What is the process to generate random numbers in c programming language?