Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void) {
- int size;
- char ascii;
- printf("Size of square: ");
- scanf("%d", &size);
- printf("Ascii character: ");
- scanf(" %c", &ascii);
- printf("Square:\n\n");
- for (int i = 0; i < size; i++) {
- for (int j = 0; j < size; j++) {
- printf("%c", ascii);
- }
- printf("\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement