When I entered any of the letters from #2-9 it printed 1 letter in the debugger
For example:
Enter a letter:
adt
4
Repeat? Y/N:
I’m not sure how to make it show multiple numbers
User Profile
Collapse
-
How do I convert an alphanumeric # to a numeric in C
This is what I have so far.
[CODE]
#define _CRT_SECURE_NO_ WARNINGS
#include <stdio.h>
#include <math.h>
#include <string.h>
int main(void){
char letter;
char loopAgain = 'Y';
while (loopAgain == 'Y'){
printf("Enter a letter: \n");
scanf(" %c", letter);
letter = toupper(letter) ;...
No activity results to display
Show More
Leave a comment: