No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Starting to do arrays and my first question is... Wrtie a loop to print the elements of an array of int called numbers. You only know that the array has 5 elements. i My 1st attempt is going like this.... [CODE]#include <iostream> using namespace std; int main() { int number[5]; … |
|
This is an assignment that I'm having trouble with, these are the 2 questions I'm having trouble with. 2. Write a loop that counts only the odd numbers out of the first five numbers entered from the keyboard, but does not count (skips) the number 7. Use the keyword continue … |
|
Probably easy for you guys but I'm not sure if I have this right!! Original function [CODE]int testing (int c, float d) { if (d > c) return (int) d; else return c; }[/CODE] What I need to do: The function returns the decimal value resulting from dividing d by … |
|
So I need this to print when vowel you entered instead of just telling you that you wrote a vowel. I'm straight up not sure how your suppose to do that! I went ahead and wrote the code for inputting vowels not sure whats next. [CODE] #include <iostream> using namespace … |