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.

WAP to print the following series.

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

2 Answers

0 votes
answered Jun 8, 2020 by Admin (5,100 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, 2020 by xDELLx (10,500 points)
edited Jun 9, 2020 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.
...