insert
Code:
#include <stdio.h>
int main(){
char input[36];
char i,j,count;
char array[6][6];
printf("Enter text:");
scanf("%s", input);
printf("\n%s", input);
count=0;
printf("\n");
printf("\n");
for (i=0;i<6;i++){
for (j=0;j<6;j++){
array[i][j] = input[count];
count++;
}
}
for (i=0;i<6;i++){
for (j=0;j<6;j++){
printf("%c", array[i][j]);
}
printf("\n");
}
return 0;
}
Im pretty new to C programming and i am trying to show a space when the user inputs one (e.g. if the user inputs a sentence) and then if the input does not fit the full space of the array it will input spaces to fill in the array, any help?