Plz explain errors | SoloLearn: Learn to code for FREE!

0

Plz explain errors

C Progrqm to Convert number to character. I/p 5 O/p five I/p 203 O/p two zero three https://code.sololearn.com/cg33k5w4zmgb/?ref=app https://code.sololearn.com/cg33k5w4zmgb/?ref=app. . . Copied from google

@c

11/23/2019 1:53:55 AM

Mr. Khan

9 Answers

New Answer

+1

Your code has stray characters (unprintable unicode characters) which are often present when you copy paste the code ftom the net. Remove all leading, trailing space by deleteing them or type in the program again

+1

Mr. Khan See this image, you need to remove all those dots https://www.sololearn.com/post/180406/?ref=app

+1

Mahfuz Ahmed Do not spam and post such stuff at sololearn. Better delete your post before a moderator ask you to do that !

0

~ swim ~ not getting result

0

What changes have you made?

0

~ swim ~ just removed spaces

0

You have only removed the blank lines not the extra spaces. There are stray chars everywhere, even between int main, long int n etc. You need to reformat your code open you code in web editor, sololearn web editor should show you the extra chars.

0

~ swim ~ I did that too but still its showing erorrs😢😢

0

Mr. Khan See this image,  you haven't done that properly. I am wondering how did you missed that, since the editor is clearly showing you there are issues. https://www.sololearn.com/post/181518/?ref=app Also remove clrscr() call on line 6 and online 8 change the format specifier from %d to %ld. Please learn to understand the warning and error messages shown by the compiler. Improve your understanding of C language