-
-
Save mischief/3902374 to your computer and use it in GitHub Desktop.
C++tempcode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int value; | |
void test(unsigned i) { | |
// test i, print, etc | |
} | |
void find_things_in_range(unsigned start, unsigned end) { | |
for(unsigned i = start; i < end; i++) { | |
// test i, see if it is the right number | |
test(i); | |
} | |
} | |
void calcdiv(int number) | |
{ | |
for (int i=1;i<=number/2;i++) | |
{ | |
if (number % i == 0) | |
{ | |
value+=1; | |
} | |
} | |
} | |
int main() | |
{ | |
unsigned start = 0,end = 0; | |
cout<<"numbers plz\n"; | |
cin>>number1>>number2; | |
find_things_in_range(start, end); | |
cout<<value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment