帮忙分析下下面程序的问题(a)# include main(){float a=12.25,b=12.52;if (a=
1个回答

(a)

# include

void main()

{

float a=12.25,b=12.52;

if (a==b)

printf ("na and b are equal");

}

(b)

# include

void main()

int j=10,k=12,t;

if (k>=j)

{

t=k

k=j;

j=t;

}

}

(c)

# include

void main()

if('X'=2)printf ("n%d" ,x );

}

(e)

# include

void main()

{

int x=10,y=15;

if (x%2==y%3)

printf ("ncarpatbians");

}

(f)

# include

void main()

int x=30,y=40;

if(x==y)

printf ("x is equal to y");

else if (x>y)

printf ("x is greater than y");

else

printf ("x is less than y");

}

(g)

# include

void main()

{

int a,b;

scanf ("%d %d",&a,&b);

if (a>b)

printf ("this is a game");

else

printf ("you have to play it");

}