//Enter phone number: 1-800-COL-LECT
//1-800-265-5328
Im trying to input the dash right after COL and before LECT. Please help
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
char ch;
printf("Enter Phrase\n");
while((ch=getchar())!='\n')
{
if ((ch=='1'))
printf("1-800-");
else if((ch=='A')||(ch=='B')||(ch=='C'))
printf("2");
else if ((ch=='D')||(ch=='E')||(ch=='F'))
printf("3");
else if ((ch=='G')||(ch=='H')||(ch=='I'))
printf("4");
else if ((ch=='J')||(ch=='K')||(ch=='L'))
printf("5");
else if ((ch=='M')||(ch=='N')||(ch=='O'))
printf("6");
else if((ch=='P')||(ch=='Q')||(ch=='R')||(ch=='S'))
printf("7");
else if((ch=='T')||(ch=='U')||(ch=='V'))
printf("8");
else if((ch=='W')||(ch=='X')||(ch=='Y')||(ch=='Z'))
printf("9");
}
return 0;
}
//Enter phone number: 1-800-COL-LECT
//1-800-265-5328