A slight modification of your code and it is working well.Just carefully go through the program and see how it works.


#include <stdio.h>
#include <stdlib.h>

int main()
{
int space,...