repl.it
@pCoding/

nod-Cplusplus

C++

No description

fork
loading
Files
  • main.cpp
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>

int Nod(int a, int b) 
{ 
	if (b != 0) 
		return Nod(b, a%b);
	return a;
}

int main() {
	std::cout << "Nod = " << Nod(48, 36) << "\n";
}
Fetching token
?