Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

How do I replace symbols in a matrix?

0 votes
asked Mar 26, 2020 by Pedro Rendon (120 points)
***My Code in C***


int main() {

    int i = 0;
    int j = 0;
    int h;
    char x = '+';
    char y = '%';
    int matrix[7][7];
    for (i = 0; i < 7; i++) {
        for (j = 0; j < 7; j++) {
            printf("\t%c", x);


        return 0;


I need to replace the symbols under the blue line.

Image of which symbols I am trying to replace: https://imgur.com/a/wPtvqc1

(ignore the old old code in the picture)

Thank you.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.