Can any body tell me what the below code does? The code is written in C++ language.
-------------------------------------------------------------------------------------
#include <stdio.h>
#include "genlib.h"
#include "simpio.h"
main(){
int num1, num2, temp;
printf (“Enter a positive integer: \n”);
num1=GetInteger();
printf (“Enter a positive integer: \n”);
num2=GetInteger();
while (TRUE){
temp=num1%num2;
if (temp==0) break;
num1=num2;
num2=temp;
}
printf (“The result is: %d “, num2);
}
-------------------------------------------------------------------------------------
What does this program do? thank you. The code is written in C++ language.