Untitled

mail@pastecode.io avatar
unknown
c_cpp
a month ago
196 B
0
Indexable
Never
#include <iostream>

int print(long long num) {
	if (num == 0) return 0;
	std::cout << num % 10;
	print(num / 10);

}

int main(){

	long long num;
	std::cin >> num;
	print(num);

}
Leave a Comment