A simple Hex-Zip test
This file contains 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
//Recursive division test by HackerDaGreat57 | |
#include <iostream> | |
int main() | |
{ | |
std::cout << "Please enter a number: "; | |
unsigned long long int input_num; | |
std::cin >> input_num; | |
std::cout << "Recieved number " << input_num << ". Now seeing what it's divisible by..." << std::endl; | |
for(unsigned long long int iter = 1; iter < 18446744073709551612U; iter++) { | |
//std::cout << "Trying number " << iter << std::endl; | |
if(input_num % iter == 0) { | |
std::cout << "Input number is divisible by " << iter << std::endl; | |
//return 1; | |
} else { | |
std::cout << "Number not divisible by " << iter << std::endl; | |
} | |
//std::cout << iter << std::endl; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment