#include <stdio.h> int main(void) {int a=0,b; scanf("%d",&b); while( a<= b ){ printf("%d",a); a=a+1;} return 0;}
5
012345
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!