codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#include <stdio.h> int schet(int chislo,int chislo2); int main() { printf("%d",schet(12,8)); getchar(); return 0; } int schet(int chislo,int chislo2) { int res=0,temp,i; if (chislo%chislo2==0) return chislo; if (chislo2%chislo==0) return chislo2; for(chislo>chislo2?i=chislo:i=chislo2;;i++) { if (i%chislo==0 && i%chislo2==0) return i; } return res; }
Private
[
?
]
Run code
Submit