Computer Science, asked by SmRtConJuReR, 1 year ago


Write a program to print the following pattern in c language
*
**
***
****
*****

Answers

Answered by rakeshchennupati143
2

Program:

#include<stdio.h>

int main(){

   for (int i = 1 ; i < 6 ; i++ ){

       for(int j =0 ; j < i ; j++){

           printf("*");

       }

       printf("\n");

   }

   return 0;

}

---Hope you got what you wanted ( give brainliest if you like my answer)

Similar questions