#include <stdio.h>
#include <conio.h>



 int main(){
     
     printf("*\n**\n***\n**\n*");
getch();
return 0;
}

i want help to write this program segment using loop statements to produce the following output

*
**
***
**
*

Recommended Answers

All 2 Replies

Donot post C - Code in the C++ Forum.

Secondly. Please show what you have come up with .... I mean post the code that you have tried. with looping mechanisms..

EDIT: ALSO USE CODE-TAGS [ CODE ] [/ CODE ]

>>EDIT: ALSO USE CODE-TAGS
You can use the noparse tag to tell him that. Use them like this

[noparse] every thing you write here will not be parsed even the [code] [/code] tags [/noparse]

commented: Thanks :) +3
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.