Anonymous user
Middle three digits: Difference between revisions
m
→removed some spaces
Line 271:
{
char output[4];
for(int i=0; i<3; i++)
{
Line 277 ⟶ 276:
}
output[3] = '\0';
printf("The middle three digits of %s are %s.\n",arg,output);
}
Line 291 ⟶ 289:
{
sprintf(input,"%d",abs(atoi(argv[1])));
if(strlen(input) < 3)
{
|