No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Here's my code: [CODE]#include <iostream> using namespace std; int Factorial(int n) { int total = 1; while(n!=0) { total = total * n; n--; } return total; } int Combinations(int n, int k) { int count = 1; for(int i=0; i<n; i++) { for(int y=0; y<(k-i); y++) { cout << … |
|
[CODE]/* #include <iostream> #include <iomanip> using namespace std; int main() { cout << " " << endl; double sum; double numb; double ave; int counter = 0; cout << "This program averages numbers." << endl; cout << endl; while (true) { cout << "Number: "; cin >> numb; if( numb … |
|
Here is the code I'm working on. The user should be able to type in a number and then after clicking the button, list (in a listbox) of all the prime numbers leading up to the number (including the number if it's prime) MY ERROR/PROBLEM: When i input a number … |