Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- public class Algoritmo {
- public static void main (String args[]) {
- int a,b,r;
- a=78; b=117; r=1;
- do {
- r = a % b; a = b; b = r;
- } while (r > 0);
- System.out.println(a);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement