12344321
123 321
12 21
1 1 how i print this program??

Answer Posted / sunitha

for(i=1;i<=5;i++)
{
for(j=1;j<=i;i++)
{
for(k=1;k<=j;k++)

printf("%d",k);
k--;
printf("%d",k);

}
}

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the explanation for prototype function in c?

554


What is wrong in this statement?

589


What is the difference between pure virtual function and virtual function?

635


Can you assign a different address to an array tag?

687


What are the different types of data structures in c?

582






What does emoji p mean?

587


What do header files do?

591


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

656


How many types of functions are there in c?

570


Describe the difference between = and == symbols in c programming?

760


Does c have circular shift operators?

708


Is there any demerits of using pointer?

613


i want to know the procedure of qualcomm for getting a job through offcampus

1914


What is switch in c?

632


what is the syallabus of computer science students in group- 1?

1824