print pattern
1 1
33 33
555 555
77777777
555 555
33 33
1 1



print pattern 1 1 33 33 555 555 77777777 555 555 33 33 1 ..

Answer / kiran kumar

#include<stdio.h>
main()
{
int i,j,space=6,val=1;
for(i=0;i<4;i++)
{
for(j=0;j<=i;j++)
printf("%d",val);
for(j=0;j<space;J++)
printf(" ");
for(j=0;j<=i;j++)
printf("%d",val);
space-=2;
val+=2;
}
repeat code once again;

space+=2;
val-=2

}

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More C Interview Questions

What are the advantages of the functions?

1 Answers  


Explain why c is faster than c++?

1 Answers  


Explain what a Binary Search Tree is.

3 Answers  


How to run c Program without using IDE of c. means if program made in notepad.then how to compile by command prompt.

1 Answers   HP, TCS,


Why header files are used?

1 Answers  


What is key word in c language?

4 Answers   ABC,


What are identifiers c?

1 Answers  


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures

1 Answers   KPIT,


what is the return type of printf

3 Answers  


‎How to define structures? · ‎

1 Answers  


write a c program for greatest of three numbers without using if statment

4 Answers   IBM,


write a program to generate address labels using structures?

1 Answers   SJC,


Categories