Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  asd
Language: C/C++
Code:
#include <stdio.h>
#include <conio.h>

int main(void)
{
     char ch='';
     int s[20], i=0;
     printf("Enter: ");
     ch = getch();
     while (ch!='\r')
     {
         s[i]=ch-48;
       i++;
       ch = getch();
     }
     for (int j=0; j<=i-1; j++)
       printf("%d",s[j]);
     getch();
     return 0;
}
          
          
          
          
          
          
          
          
          
          
Comments: