#include
using namespace std;
int main()
{
int numberOfElemenets = 10;
double myArray[numberOfElements] = {0.0};
double sum = 0;
for (int index = 0; index < numberOfElements; index++)
{
cout << "Enter " << (index + 1) << " number: ";
cin >> myArray[index];
}
for (int index = 0; index { sum += myArray[index]; } cout << "\nSum of all elements: " << sum << endl; cout << "Avarage is: " << (sum/numberOfElements) << endl; return 0; }
write a c program to accept a number and generate a square root cube and exponential values
fdsgfhgdfhgdf
program to find maximum of two numbers using pointers
VBnet program to find the prime numbers between 100 to 200?
To write pseudocode that accepts five numbers and displays their sum and average, you can follow these steps: Initialize a variable sum to 0. Loop five times to accept input for each number, adding each to sum. After the loop, calculate the average by dividing sum by 5. Display both the sum and the average. Here’s a simple representation: BEGIN sum = 0 FOR i FROM 1 TO 5 DO INPUT number sum = sum + number END FOR average = sum / 5 OUTPUT "Sum: ", sum OUTPUT "Average: ", average END
write a c program to accept a number and generate a square root cube and exponential values
Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end
How to write a program for mouse in microprocessor?
C programm
Write your program and if you are having a problem post it here with a description of the problem you are having. What you are asking is for someone to do your homework for you. no i am asking to verify my answer
dim a input a
write a lex program to delete space from the program
write an assembly language program to find sum of N numbers
you cant
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
fdsgfhgdfhgdf
program to find maximum of two numbers using pointers