You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Take as input str, a number in form of a string. Write a recursive function to convert the number in string form to number in integer form. E.g. for “1234” return 1234. Print the value returned.
7
+
8
+
// Input Format
9
+
// Enter a number in form of a String
10
+
11
+
// Constraints
12
+
// 1 <= Length of String <= 10
13
+
14
+
// Output Format
15
+
// Print the number after converting it into integer
16
+
17
+
// Sample Input
18
+
// 1234
19
+
// Sample Output
20
+
// 1234
21
+
// Explanation
22
+
// Convert the string to int. Do not use any inbuilt functions.
0 commit comments