Run Code
|
Code Wall
|
Users
|
Misc
|
Feedback
|
About
|
Login
|
Theme
silnia
#include <iostream> using namespace std; int sil(int x,int y) { if (0<=x && x<y) { return 1; } return x*sil(x-y,y); } int main() { int ile, a, b; cin>>ile; for(int i=0; i<ile; i++) { cin>>a>>b; cout<<sil(a,b)<<endl; } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Bitwise - Check power of 2 or not
cpp ex 3 - solution
aju
single_digit
Permute
pow implementation
Gauss v0.1
Kalkulator z bajerami
MyString
Synchro#1
Please log in to post a comment.