Ŀ

գҪıйص䡣
һ repeat (0<repeat<10) repeat 㣺
һԻسַ80ַȥеķʮַһַʮʽȻתΪʮ
ʾΪ˵
룺
2	(repeat=2)
10
+A

Dec = 16
Dec = 10



#include "stdio.h"
#include "string.h"
#define MAXLEN 80
int main(void)
{  
    char ch;
    char str[MAXLEN], num[MAXLEN];
    int i, k;
    int repeat, ri;
    long number;

    scanf("%d", &repeat);
    getchar();
    for(ri = 1; ri <= repeat; ri++){
        i = 0;
        while((ch = getchar()) != '\n'){
            str[i]=ch;
            i++;
        }
        str[i] = 0;
/*---------*/
      	printf("Dec = %ld\n",number);
    }
}
