Help with C program on Linux - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Help with C program on Linux

Hello,

I am working one of C program which prompts the user to enter a hexadecimal value, multiplies by ten, then displays the result in hexadecimal. And my main function should:

a) declare a char array
b) call the readln function to read from the keyboard,
c) call a function to convert the input text string to an int,
d) multiply the int by ten,
e) call a function to convert the int to its corresponding hex text string,
f) call writestr to display the resulting hexadecimal text string.

I have been working on it for forever now and I am like done with it, please please please if somebody would sent me a message regarding this, than I would really appreciate it.

Thanks,
Ami
Sign In or Register to comment.