Convert string to int without using library function in c

Convert string to int without using library function in c

Input:

Enter the string: 1234

Output:

The string 1234 converted to number 1234

Implementation: