mirror of https://github.com/TheAlgorithms/C
make identical datatype
4d0dbc401d/files/project_euler/problem_22/sol1.c
?sort=name&dir=ASC&mode=heatmap#xa0d183509f9bbb35:1
This commit is contained in:
parent
0f48961469
commit
f21f18ef73
|
@ -128,7 +128,7 @@ int main(int argc, char **argv)
|
||||||
for (i = 0; i < COUNT; i++)
|
for (i = 0; i < COUNT; i++)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
unsigned int score = 0;
|
long score = 0;
|
||||||
/* score the alphabets in i^th name */
|
/* score the alphabets in i^th name */
|
||||||
for (int j = 0; names[i][j] != '\0'; j++)
|
for (int j = 0; names[i][j] != '\0'; j++)
|
||||||
score += names[i][j] - 'A' +
|
score += names[i][j] - 'A' +
|
||||||
|
|
Loading…
Reference in New Issue