String char separately priny

 /* here gets is string reader like getch

*/


#include <stdio.h>



int main (){

    char input [100];

    int counter ;

    gets(input);

    for(counter= 0 ; input[counter] != '\0' ; counter++){

        printf("%c\n", input[counter]);

    }

return 0 ;

}

Comments

Popular posts from this blog

Factors : using C

Cross shaped pattern

Factorial ! calculation