Here is my code if this helps...
Code:
//Lab assignment 1b-b
//produces a validation letter for a 10 digit #
#include <stdio.h>
#include <conio.h>
void main(void)
{
int pair1, pair2, pair3, pair4, pair5, total, vchar;
printf("Input Code 10 Digit Sum Numeric Validated\n");
printf(" Code Value Code Value Code\n\n");
scanf("%2d%2d%2d%2d%2d", &pair1, &pair2, &pair3, &pair4, &pair5);
total=(pair1+pair2+pair3+pair4+pair5);
vchar=total%26+65;
printf("\r%8d%10d%10d%12d%2d%2d%2d%2d%c",total,vchar-65,pair1,pair2,pair3,pair4,pair5,vchar);
fflush(stdin);
getchar();
}
ignore the \r in the printf...
Ignore the \r in the printf...I was tried \b and \r and neither helped.