주민번호 확인 프로그램
#include int main(void){ int i=0;int j=0;int fin=0;int s=1;int sum=0;int cunt=0;int k=0;int ma=0;char joomin[15];char joomin2[15];char joomin3[15]={'2','3','4','5','6','7','8','9','2','3','4','5','6'}; printf("주민번호 머냐?");gets(joomin);for(i=0;s;i++){int r=joomin[i]-'0';int t=joomin3[i]-'0';if(joomin[i+1]==NULL){s=0;break;}printf("\n주민번는 : %d %d", r, t); sum+= r*t;cunt++;printf("\n sum값은%d" ,sum);..
2014. 10. 2.