how can i get the output
54321
4321
321
21
1
in c programming........???? pls help......
Answers were Sorted based on User's Feedback
Answer / jayaraj.s
#include<stdio.h>
main()
{
int a,b;
for(a=5;a!=0;a--)
{
for(b=a;b!=0;b--)
{
printf("%d",b);
}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 87 Yes | 16 No |
Answer / narasimharao
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,n;
clrscr();
scanf("%d",&n);
for(i=n;i>=1;i--)
{
for(j=i;j>=1;j--)
{
printf("%d",j);
}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 29 Yes | 12 No |
Answer / dattatreya
#include<stdio.h>
int main(){
char a[6]="54321";
char *p=a;
while(*p){
printf("%s ",p++);
}
return 0;
}
| Is This Answer Correct ? | 9 Yes | 3 No |
Answer / nagulmeera
#include<stdio.h>
#include<conio.h>
main()
{
for(int i=5;i<0;i--)
{
for(j=i;j!=0;j--)
{
printf("%d",j);
}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 5 Yes | 8 No |
Answer / mydeen
for(i=5;i<0;i++)
{
for(j=i;j<0;j++)
{
printf("%d",&i);
}
}
| Is This Answer Correct ? | 4 Yes | 7 No |
Answer / rishabh upadhyay
#include<stdio.h>
void main(){
int i,j=5,temp=0;
for (i=1;i<=5;i++)
{
for (j=5-temp;j>=1;j--)
{
printf("%d",j);
}
printf("
");
temp=temp+1;
}
}
| Is This Answer Correct ? | 1 Yes | 4 No |
Answer / aditya the future google ceo
(i=1;i<=5;i--)
{
(J=1;j<=i;j--)
| Is This Answer Correct ? | 1 Yes | 4 No |
Why do we use c for the speed of light?
how can i calculate mean,median,mode by using c program
What is methods in c?
int i=0,j; j=++i + ++i ++i; printf(" %d",j);
Explain how can you determine the size of an allocated portion of memory?
What is function and its example?
A marketing company wishes to construct a decision table to decide how to treat clients according to three characteristics: Gender, City Dweller, and age group: A (under 30), B (between 30 and 60), C (over 60). The company has four products (W, X, Y and Z) to test market. Product W will appeal to female city dwellers. Product X will appeal to young females. Product Y will appeal to Male middle aged shoppers who do not live in cities. Product Z will appeal to all but older females.
Can you tell me how to check whether a linked list is circular?
Differentiate abs() function from fabs() function.
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
How will you delete a node in DLL?
Was 2000 a leap year?