A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://TheAlgorithms.github.io/C-Plus-Plus/d9/d44/magic__number_8cpp_source.html below:

TheAlgorithms/C++: math/magic_number.cpp Source File

Go to the documentation of this file. 38

uint64_t result = n % 9;

53

std::cout <<

"Test 1:\t n=60\n"

;

55

std::cout <<

"passed\n"

;

57

std::cout <<

"Test 2:\t n=730\n"

;

59

std::cout <<

"passed\n"

;

61

std::cout <<

"Test 3:\t n=0\n"

;

63

std::cout <<

"passed\n"

;

65

std::cout <<

"Test 4:\t n=479001600\n"

;

67

std::cout <<

"passed\n"

;

69

std::cout <<

"Test 5:\t n=-35\n"

;

71

std::cout <<

"passed\n"

;

static void tests()

Test function.

int main()

Main function.

bool magic_number(const uint64_t &n)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4