Want this question answered?
#include <iostream>02using namespace std; 03 04int main() 05{ 06 int sum = 0; 07 int average = 0; 08 int array[10] = {1,2,3,4,5,6,7,8,9,10}; 09 for (int i = 0; i < 10; ++i) 10 sum+=array[i]; 11 average = sum/10; 12 cout<<"Average:"<<average; 13}
1.Start Algorithm 2.Enter first number 3.Enter second number 4.Enter third number 5.Enter fourth number 6.Enter fifth number 7.Add five number 8.display five number / 2 9.Display result 10.End Algorithm
Currency style format
The average of the remaining numbers is 38.
The average of n numbers = (sum of n numbers) / (count of n numbers).
Simply: design an application, that accept one number, then put it in a loop that repeat is ten times.
Develop an algorithm to display all prime numbers from 2 to 100. Give both the pseudocode version and the flowchart version. Convert your pseudocode into a Java program.
1. Accept the 2 numbers 2. Add the 2 numbers3. Compare answer with 54. If answer is greater than 5 subtract with 5 else give a error message.
No. The MIN function displays the lowest value in a range. The AVERAGE function gets the arithmetic mean of a set of values. It totals them up and divides by the amount of numbers.
How to write a program for mouse in microprocessor?
Algorithm:Given x and y are both numbers, if x is greater than y then return x, otherwise return y.C++ implementation of the algorithm:template T GetMax(T x, T y) { return(x>y?x:y); }
floating-point variable cost
start read a read b c=a-b print c end
Yes. Excel can display numbers as percentages. Do you have a question?
#include <iostream>02using namespace std; 03 04int main() 05{ 06 int sum = 0; 07 int average = 0; 08 int array[10] = {1,2,3,4,5,6,7,8,9,10}; 09 for (int i = 0; i < 10; ++i) 10 sum+=array[i]; 11 average = sum/10; 12 cout<<"Average:"<<average; 13}
1.Start Algorithm 2.Enter first number 3.Enter second number 4.Enter third number 5.Enter fourth number 6.Enter fifth number 7.Add five number 8.display five number / 2 9.Display result 10.End Algorithm
Format.