C
Programming and Technical
Programming
Program
write a program that display output as
1 2 3 4 5
15 14 13 12
6 7 8
11 10
9
Read Solution (Total 11)
-
- total program is not showing.....
- 11 years agoHelpfull: Yes(3) No(0)
- #include
main()
{
int i,j,k=1;
int m,n=15;
for(i=0;i - 11 years agoHelpfull: Yes(2) No(0)
- void main()
{
int n,i,j,c=1,m,x,y;
printf("ntEnter the rows : ");
scanf("%d",&n);
m=n;
y=m;
x = m*3;
for(i=1;i=1;j--)
{
printf("%dt",x);
x--;
}
printf("n");
}
else
{
for(j=m-i+1;j>=1;j--)
{
printf("%dt",c);
c++;
}
m--;
}
printf("n");
}
} - 10 years agoHelpfull: Yes(1) No(0)
- #include
main()
{
int i,j,k=1;
int m,n=15;
for(i=0;i - 11 years agoHelpfull: Yes(0) No(0)
- #include
main()
{
int i,j,k=1;
int m,n=15;
for(i=0;i - 11 years agoHelpfull: Yes(0) No(0)
- #include
#include
void main()
{
int i,k, j,c=1,d=15;
for(i=5;i>0;i--)
{
if(i%2!=0)
{
for(j=1;j - 11 years agoHelpfull: Yes(0) No(0)
- static int n = 5;
static int j = 15;
static int i=1;
int k;
while( n > 0)
{
for(k = 1; k - 11 years agoHelpfull: Yes(0) No(0)
- //no of row you wnat to print
//DHIRENDRA KUMAR KASHYAP
#include
int main ()
{
int i,j,k,n,sum=0;
static int in,dn;
printf("enter a not");
scanf("%d",&n);
in=1;
for(i=n;i>=1;i--)
{
sum=sum+i;
}
dn=sum;
for(i=1;i - 10 years agoHelpfull: Yes(0) No(0)
- void main()
{
int n,i,j,c=1,m,x,y;
printf("ntEnter the rows : ");
scanf("%d",&n);
m=n;
y=m;
x = m*3;
for(i=1;i=1;j--)
{
printf("%dt",x);
x--;
}
printf("n");
}
else
{
for(j=m-i+1;j>=1;j--)
{
printf("%dt",c);
c++;
}
m--;
}
printf("n");
}
} - 10 years agoHelpfull: Yes(0) No(0)
- /*
1 2 3 4 5
15 14 13 12
6 7 8
11 10
9
*/
#include
main()
{
int i,j,k,m,l,n;
l=5;
n=1;
m=15;
for(i=5;i>5/2;i--)
{
for(j=0;j - 10 years agoHelpfull: Yes(0) No(0)
- main()
{
int i,j,k,m,l,n;
l=5;
n=1;
m=15;
for(i=5;i>5/2;i--)
{
for(j=0;j - 10 years agoHelpfull: Yes(0) No(0)
C Other Question