9 AnswersNew Answer
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
Mr. Khan See this image, you need to remove all those dots https://www.sololearn.com/post/180406/?ref=app
Mahfuz Ahmed Do not spam and post such stuff at sololearn. Better delete your post before a moderator ask you to do that !
~ swim ~ not getting result
What changes have you made?
~ swim ~ just removed spaces
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.
~ swim ~ I did that too but still its showing erorrs😢😢
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