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 is diference between return 0 and return NULL??

3 Answers  


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

0 Answers   TATA, TCS,


why u join this call center?

6 Answers   DELL,


Why do some versions of toupper act strangely if given an upper-case letter?

0 Answers  


write a program which will count occurance of a day between two dates.

1 Answers   IonIdea,






How can I do serial ("comm") port I/O?

0 Answers   Celstream,


What is the sizeof () a pointer?

0 Answers  


What are linked lists in c?

0 Answers  


How can I delete a file?

0 Answers  


What is the use of define in c?

0 Answers  


What is structure packing ?

2 Answers   HP,


What is data structure in c programming?

0 Answers  


Categories