Am trying to make this program in c which draws the following

\\*      *      *
\\**    ***    **
\\***  *****  ***     
\\***************

if the user in puts 4.... ((need help))

i only want to use the nested for loop and the if else statements so please need help

that's what i did so far..

#include <stdio.h>
int main ()
{
int input;

printf("please enter the size of the triangle:");
scanf("%d",&input);





system ("pause");
return 0;
}

i am so new to programming and am teaching my self programming threw the internet and am not going to any programming classes
thanx

plez?

gerard did help. It also might help it you read the Member Rules as asked when you signed up.

Edited 5 Years Ago by WaltP: n/a

Can anyone answer the question , I need to answer as well ..
The program does not work with me!
Can you write it in C Language ؟
I would be grateful to you Mr.gerard

Can anyone answer the question , I need to answer as well

Whether you need the answer or not doesn't change the fact that we don't do other people's homework until they've demonstrated sufficient effort in completing it themselves.

well .. you are right in these point !
but you don't know how much i try to solve it !
and you do not know how much time I spent to solve this program ..

but you don't know how much i try to solve it !
and you do not know how much time I spent to solve this program ..

This is true. We can only go by what we see, and what we see is somebody who's shown no effort asking for the complete solution. Put on your objectivity hat and ask yourself what you'd do if you were us.

This article has been dead for over six months. Start a new discussion instead.