WAP to print the following series.

+1 vote
asked Jun 7 by SIMRAN KAUR (130 points)
*
    **
   ***
  ****
 *****

2 Answers

0 votes
answered Jun 8 by Admin (4,340 points)
This seems like assignment problem. Asking for complete solution right away isn't recommended.
Please try to give your effort in solving the problem and you may ask for help wherever you are stuck or facing difficulty. It will help you understand better.
–1 vote
answered Jun 9 by xDELLx (2,950 points)
edited Jun 9 by xDELLx

How about below code ??

It will help , but its for you to decide if its expected : )


#include<stdio.h>

int main(){

printf("    *\n");

printf("   **\n");

printf("  ***\n");

printf(" ****\n");

printf("*****\n");

return 0;

}

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.
...