int main() { int V; float Array_A[9] = { 4.6, 2.9, 3.6, 1.0 ,2.3 ,7.8 ,4.4 ,5.7 ,1.4 }; cout << "please enter a Variable V " << endl; cin>> V ; cout << "Your variable is : "<<V << endl; } float average(float Array_A[], int sizeOfarray) { float sum = 0; for (int x = 0; x < sizeOfarray; x++) { sum += Array_A[x]; } return sum / (float)sizeOfarray; }
signature
#include
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)