In the bellow you can also download the programs in files
Solutions is here
#include
#include
void main()
{
system("clear");
int i[2000];
char name[1000]="a.txt",c;
printf("\n\n\n Enter a number ");
scanf("%d",&i[1]);
if(i[1]==1)
printf("\n.\n\n\n");
if(i[1]==11)
printf(",\n\n\n");
if(i[1]==111)
printf("?\n\n\n");
if(i[1]==1111)
printf("!\n\n\n");
if(i[1]==11111)
printf("\n1\n\n\n");
if(i[1]==2)
printf("\na\n\n\n");
if(i[1]==22)
printf("\nb\n\n\n");
if(i[1]==222)
printf("\nc\n\n\n");
if(i[1]==3)
printf("\nd\n\n\n");
if(i[1]==33)
printf("\ne\n\n\n");
if(i[1]==333)
printf("\nf\n\n\n");
if(i[1]==4)
printf("\ng\n\n\n");
if(i[1]==44)
printf("\nh\n\n\n");
if(i[1]==444)
printf("\ni\n\n\n");
if(i[1]==5)
printf("\nj\n\n\n");
if(i[1]==55)
printf("\nk\n\n\n");
if(i[1]==555)
printf("\nl\n\n\n");
if(i[1]==6)
printf("\nm\n\n\n");
if(i[1]==66)
printf("\nn\n\n\n");
if(i[1]==666)
printf("\no\n\n\n");
if(i[1]==7)
printf("\np\n\n\n");
if(i[1]==77)
printf("\nq\n\n\n");
if(i[1]==777)
printf("\nr\n\n\n");
if(i[1]==7777)
printf("\ns\n\n\n");
if(i[1]==8)
printf("\nt\n\n\n");
if(i[1]==88)
printf("\nu\n\n\n");
if(i[1]==888)
printf("\nv\n\n\n");
if(i[1]==9)
printf("\nw\n\n\n");
if(i[1]==99)
printf("\nx\n\n\n");
if(i[1]==999)
printf("\ny\n\n\n");
if(i[1]==9999)
printf("\nz\n\n\n");
}