<stdio.h> main( m,val,sum = ,&== sum*+m%/= (sum ==
//對while語句進行流程分析
//假設用戶輸入數字121,判斷是否回文數,m非0是真,否則為假,為真輸出YES,假輸出No;
1--->sum = sum*10+m%10 (sum = 0*10+121%10)//sum=0+1,sum=1
m / = 10(m=m/10)//m=121/10,m=12
2--->sum = sum*10+m%10(sum=1*10+12%10)//sum=10+2,sum=12
m / 10 =10(m=m/10) //m=12/10,m=1
3--->sum = sum*10+m%10(sum=12*10+1%10)//sum=120+1,sum=121
m / 10 =10(m=m/10) //m=1/10,m=0
m = 0為假,則輸出No