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.
Login
Login
OnlineGDB Q&A
Questions
Unanswered
Tags
Ask a Question
Ask a Question
*\n **\n ***\n ****\n***** use the c programming
0
votes
asked
Jul 2, 2019
by
Sabyasachi Naskar
reshown
Jul 2, 2019
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
use the c programming
c
please-help
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or register.
5 Answers
0
votes
answered
Jul 6, 2019
by
anonymous
#inlcude<stdio.h>
void main()
{
for(i=0;i<5,i++)
{
for(j=0;j<=i;j++)
{
printf("*");
}
printf("/n");
}|
}
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or register.
0
votes
answered
Jul 6, 2019
by
jss shivateja
(
140
points)
#inlcude<stdio.h>
void main()
{
int i,j;
for(i=0;i<5;i++)
{
for(j=0;j<=i;j++)
{
printf("*");
}
printf("/n");
}
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or register.
0
votes
answered
Nov 6, 2019
by
CRS
#include <stdio.h>
void main()
{
char a[5][5];
for(int i=0;i<5;i++)
{
for(int j=0;j<5;j++)
{
if(i+j<4)
a[i][j]=' ';
else
a[i][j]='*';
}
}
for(int i=0;i<=5;i++)
{
for(int j=0;j<5;j++)
printf("%c",a[i][j]);
printf("\n");
}
}
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or register.
0
votes
answered
Nov 7, 2019
by
Sabyasachi Naskar
#include<stdio.h>
int main(){
int i,j,k;
for(i=1;i<=5;i++){
for(j=4;j>=i;j--){
printf(" ");
}
for(k=1;k<=i;k++){
printf("*");
}
printf("\n");
}
}
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or register.
0
votes
answered
Nov 8, 2019
by
rohan ag
(
1,310
points)
edited
Nov 8, 2019
by
rohan ag
/*i think i saw all the answers but all are used more than 2 loops i used only 2 loops once try it*/
#include<stdio.h>
void main()
{
int i,j;
for(i=4;i>=0;i--)
{
for(j=0;j<=4;j++)
{
if(j>=i)
printf("*");
else
printf(" ");
}
printf("\n");
}
}
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or register.
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.
...