Hi all,
I have to write a program that will input a string and convert the string to an integer value. The program should then output the
integer value multiplied by 2. Also im not supposed to use any built in functions.Can anyone help me?
Thanks a million!
Sana Zafar
sana zafar
0
Newbie Poster
Recommended Answers
Jump to PostIf you look at any standard ascii chart you will see that every character on the keyboard has a decimal value. The digits '0' through '9' have a decimal value of 48 to 57. To convert any digit to an integer all you have to do is subtract '0' (or …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.