Saturday, March 18, 2023

"print a star pattern with 9 row and 9 column " in c programming .

 //print a star pattern with 9 row and 9 column

#include <stdio.h>
int main ()
{
    int row ,col;
    for (row=1;row<=9;row++){
        for (col=1;col<=row;col++){
            printf ("*");
        }
        printf ("\n");
    }
    return 0;
}


output output output output output
* ** *** **** ***** ****** ******* ******** *********

No comments:

Post a Comment

print a multiplication table of any integer taking from user

 // print a multiplication table of any integer taking from user  #include "stdio.h" int main () { int n,mul,i; printf ("...