AZ+ZA=99 ( 09 + 90 . 18 + 81 )가 되는 A랑 Z를 찾는건데


안에 if(A==Z) continue; 이거를 왜해놓은건지 모르겠어 예에전에 했던건데 기억이안나네... A Z가 같을때 왜 컨티뉴를 했ㅎ을까..? 


#include<stdio.h>


int main(void)

{

int A, Z;

int result;


for (A = 0; A < 10; A++)

{

for (Z = 0; Z < 10; Z++)

{

if (A == Z)

continue;

result = (A * 10 + Z) + (Z * 10 + A);


if (result == 99)

printf("%d%d+%d%d=%d \n", A, Z, Z, A, result);

}

}


return 0;

}