15. Dasturni ishga tushirganda ekranda qanday natija xosil bo‘ladi? using System;
class test {
public bool Mout(int x, int y, out int t, out int z){
int i;
int max;
if (x>y) max=x; else max=y;
bool f=true; t=1; z=1;
for (i=2; i<=max/2+1; i++){
Dasturlash tillari va axborot-kommunikatsiya texnologiyalari 1-semestr
312
if((y%i==0)&(x%i==0)){
if (f) {t=i; f=false;} z=i;}}
if (t!=1) return true; else return false;}}
class tek
{
public static void Main()
{
test ob = new test();
int p, q;
if (ob.Mout(54, 36, out p, out q))
{
Console.Write(p+”,”);
Console.WriteLine(q);
}
}
}
A) 3, 9
B) 4, 12
C) 1, 1
D) 2, 18
E) xatolik beradi
Dasturlash tillari va axborot-kommunikatsiya texnologiyalari 1-semestr