Sololearn: Learn to Code
+ 12
After removing invisible characters & extra spaces the code was working good. U can see invisible characters & extra spaces by pasting link to code in google, then those invisible charcters will be visible(in tab/mobile also) & you can remove them to make your program run.👍
4th Feb 2019, 12:37 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 3
Did you copy paste it from somewhere? There are alot of stray '\240' characters in the program where spaces should be, they don't appear to be visible on the mobile version, but they appear as pink squares on the pc version.
4th Feb 2019, 11:44 AM
Dennis
Dennis - avatar
+ 2
Here is your answer #include <stdio.h> int main() { int x = 1; while (x<=10) { printf("%d ",x); x++; } return 0; }
11th Feb 2019, 8:08 AM
Kavya
Kavya - avatar
+ 2
what's wrong with it? recursive print function that prints numbers from n to 0 void print(int n) { if (n < 0) break; printf("%d", n); print(n - 1); }
12th Feb 2019, 9:57 AM
Shubham Yadav
Shubham Yadav - avatar