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 x, y; void main() { printf("Please enter in the first whole number\n"); x =5; printf("Please enter in the second whole number\n"); y = 10; if ((x % y) == 0) printf("The number %d is a multiple of %d\n",x,y); else printf("The number %d is NOT a multiple of %d\n",x,y); if ((y % x) == 0) printf("The number %d is a multiple of %d\n",y,x); else printf("The number %d is NOT a multiple of %d\n",y,x); }
Private
[
?
]
Run code
Submit