1234567891011121314151617181920212223
#include <iostream.h> void main(){ int m, n, a3, a2, a1, aux; cout<<"\n\n\n Enter a number: "; cin>>m; cout<<"\n\n\n Enter a number: "; cin>>n; if(m<n){ aux=m; m=n; n=aux; } a3=m; a2=n; a1=m-n; while(a1>0){ a3=a2; a2=a1; a1=a3-a2; } if(( a3 == a2) and (a2 == 1 )) cout<<"Numbers are."; if ( ! (( a3 == a2 ) and (a2 == 1 )) ) cout<<"Numbers aren't."; }