Pyramid Problem No. 1

 Q.1 Write a program to generate a following structure:

          @@@@@
          @@@@@
          @@@@@
          @@@@@
          @@@@@

    
    Solving by C:       

#include <stdio.h>

int main()

{

    int row,col;

    for(row=1;row<=5;row++){

        for(col=1;col<=5;col++){

            printf("@");

        }

        printf("\n");

    }

    return 0;

} 






Comments

Post a Comment

Popular posts from this blog

Pyramid Problem No. 90

Pyramid Problem No. 74

Pyramid Problem No. 85