No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
calculate and display the square root of each value in NumArray then store it in an array called SquareNumArray. hi guys what is wrong with this code? #include <stdio.h> int main() { int numArrays[] = {2, 67, 23, 5, 7, 34, 14, 4, 8, 62}; int SqareNumArray[]; int i; for(i=0; … |
|
calculate and display the average of all even values . #include<stdio.h> int main() { int numArrays[] = {2, 67, 23, 5, 7, 34, 14, 4, 8, 62}; int i, sum=0, ave=0; for(i=1; i<10; i++) { if(numArray[i]%2==0) printf("%d", numArray[a]); total+=numArray[a]; sum=sum+total; printf("the total of all even number is; %d", sum); } … |
|
calculate and display the average of all even values . #include<stdio.h> int main() { int numArrays[] = {2, 67, 23, 5, 7, 34, 14, 4, 8, 62}; int i, sum=0, double ave=0; for(i=1; i<10; i++) { if(numArray[i]%2==0) { printf("%d", numArray[a]); total+=numArray[a]; } { sum=sum+total; printf("the total of all even number … |
|
im not god in programing im stil new to it need help please find the MAX and MIN number then calculate and display the average [(MAX+MIN)/2] #include<stdio.h> int main(void) int NumArray[] = {2 ,67 ,23 ,5 ,7 ,34 ,14 ,4 ,8 , 62}; int max, min, i; double b; max=numArray[i] … |
|
help please ^^ create another array, call it ArrayNum, then store the value of NumArray in reverse order. display the value in ArrayNum. #include <stdio.h> int main(void) { int numArrays[] = {2, 67, 23, 5, 7, 34, 14, 4, 8, 62}; int ArrayNum[10]; int a; for(a=o; a<10; a++) { ArrayNum[a]=numArray[9]; … |
|
int NumArray[]="2 ,67 ,23 ,5 ,7 ,34 ,14 ,4 ,8 , 62"; A. display all the value of NumArray with an ODD index B. display all the value in NumArray that are ODD C. calculate and display the average of all EVEN values D. create another array, call it ArrayNum, … |
|
#include <stdio.h> int main() { int numArrays[] = {2, 67, 23, 5, 7, 34, 14, 4, 8, 62}; int i; printf("Odd Numbers in numArray:\n"); for(i=0;i<10; i++) { if(numArray[i]%2==1) { printf("%d ",numArray[i]); total += i; sum=sum+total; sum=sum+1; printf("There are %d odd numbers\n", sum); } } printf("even numbers in numArray;\n"); for(i=0; i<10; … |
|
whats wrong with this one? i am trying to display the values in an odd index can any one help? int main() { int numArrays[] = {"2 ,67 ,23 ,5 ,7 ,34 ,14 ,4 ,8 , 62"}; int i; printf("A. Values of NumArray with Odd Index: \n"); for(i=0;i<=10; i++) { … |