how can i get the output
54321
4321
321
21
1

in c programming........???? pls help......




Answers were Sorted based on User's Feedback



how can i get the output 54321 4321 321 21 1 in c programming........???? pls help........

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 ?    75 Yes 12 No

how can i get the output 54321 4321 321 21 1 in c programming........???? pls help........

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 ?    23 Yes 10 No

how can i get the output 54321 4321 321 21 1 in c programming........???? pls help........

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 ?    5 Yes 3 No




how can i get the output 54321 4321 321 21 1 in c programming........???? pls help........

Answer / code0090

for more go to
http://answerwale.co.cc/?p=22#comment-18

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

int main()
{
int a=5;
int b=9;

while(a!=0){
for(int i=a;i>0;i--)
{
printf("%d",i);
}
printf("\n");
a--;
}
getch();
return 0;
}

Is This Answer Correct ?    6 Yes 7 No

how can i get the output 54321 4321 321 21 1 in c programming........???? pls help........

Answer / gohar

a
22
ccc
4444
eeeee
666666

Is This Answer Correct ?    1 Yes 3 No

how can i get the output 54321 4321 321 21 1 in c programming........???? pls help........

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 3 No

how can i get the output 54321 4321 321 21 1 in c programming........???? pls help........

Answer / aditya the future google ceo

(i=1;i<=5;i--)
{
(J=1;j<=i;j--)

Is This Answer Correct ?    0 Yes 2 No

how can i get the output 54321 4321 321 21 1 in c programming........???? pls help........

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 ?    3 Yes 6 No

how can i get the output 54321 4321 321 21 1 in c programming........???? pls help........

Answer / mydeen

for(i=5;i<0;i++)
{
for(j=i;j<0;j++)
{
printf("%d",&i);
}
}

Is This Answer Correct ?    2 Yes 5 No

how can i get the output 54321 4321 321 21 1 in c programming........???? pls help........

Answer / aftab rai

#include<stdio.h>
#include<conio.h>
main()
{
int i,j,n;
printf("enter numbers of lines");
scanf("%d",&n);
for(i=0;i<n;i++)
{
for(j=0;j<=i;j++)
{printf("%d",i+1+j);}
printf("\n");
}
getch();
}

Is This Answer Correct ?    3 Yes 10 No

Post New Answer



More C Interview Questions

write a program of palindrome(madam=madam) using pointer?

5 Answers   L&T,


c program to add and delete an element from circular queue using array

3 Answers  


What is information technology.

1 Answers  


Predict the output or error(s) for the following: 25. main() { printf("%p",main); }

3 Answers   Google, ME,


Write a program in c using only loops to print * * * * * *******

2 Answers   IBM,






1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

0 Answers  


Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates

3 Answers  


WAP to accept first name,middle name & last name of a student display its initials?

5 Answers   NIIT, AITH,


what is the output of the program and explain why?? #include<stdio.h> void main ( ) { int k=4,j=0: switch (k) { case 3; j=300; case 4: j=400: case 5: j=500; } printf (ā€œ%d\nā€,j); }

14 Answers   Oracle,


Can u please send me the exam pattern and also Previous papers to javed123go@gmail.com

0 Answers  


write a c programs to do multiplication of two numbers with out using arithmatic operator ??????????

7 Answers   Infosys, TCS,


If an old women's age is the same as her three grand daughters i,mean the number of days old child=the no of weeks old child=no of months old child .The total yrs of all these ppl is 114 yrs...then how old is the old woman? the yr has 365 days..and 30 days each month.

1 Answers   TCS,






Categories