class Program{
static void Main (){
inta, b;
do{
Console.WriteLine("Nhap gia tri a: ");
a = int.Parse(Console.ReadLine());
Console.WriteLine("Nhap gia tri b: ");
b = int.Parse(Console.ReadLine());
} while (a == 0 || b == 0);
Math.Abs(a);
Math.Abs(b);
while (a != b){
if (a > b) a = a - b;
else b = b - a;
}
Console.WriteLine("USCLN la: {0}",a);
Console.ReadLine();
}
}
Klik untuk melihat kode: :) =( :s :D :-D ^:D ^o^ 7:( :Q :p T_T @@, :-a :W *fck* x@