#include <stdio.h> int main() { int a=120, b=45; while(a!=b){ if(a>b)a=a-b; else b=b-a; } printf("%d",a);}
Standard input is empty
15
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!