Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Simplify of a rational number
mhdew
Oct 29th, 2017
174
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.28 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include<stdio.h>
int main()
{
int u,l,y,z,x;
scanf("%d%d", &u,&l);
for(x=l-1;x>1;x--){
if(u%x==0 && l%x==0){
y=u/x;
z=l/x;
}
break;
}
printf("%d/%d = %d/%d\n", u,l,y,z);
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Google Docs - Exploit
7 min ago | 0.39 KB
Earn money on Changelly
CSS | 21 min ago | 0.39 KB
SwapEngine Bug [build 1.3]
34 min ago | 0.39 KB
Untitled
41 min ago | 1.01 KB
December smells like money
CSS | 47 min ago | 0.39 KB
✅ Changelly.com Exploit
1 hour ago | 0.39 KB
coding and writing poetry
7 hours ago | 1.27 KB
UserScript - Hide Umingle video overlays
JavaScript | 9 hours ago | 1.97 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!