编辑代码

#include <stdio.h>
void ppt(char,int,int);

int main () {
    char maa[30];
    printf("Please enter the character you want to print:");
    scanf("%c",maa);
    ppt(maa[0],3,3);

}

void ppt(char ch, int m, int n){
    int i,j;
    for (i=0;i<n;i++){
        for(j=0;j<m;j++)
            printf("%c ",ch);   
    printf("\n");
    }

    
}