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 the difference between ++a and a++?

0 Answers  


what are the facialities provided by you after the selection of the student.

0 Answers   TCS,


how to find string length wihtout using c function?

6 Answers  


What is the use of clrscr?

0 Answers  


Find greatest of two numbers using macro

4 Answers   Bosch, Siemens,






a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

0 Answers   Mindteck,


In header files whether functions are declared or defined?

1 Answers   TCS,


what is the return value (status code) of exit() function.... what the arguments(integer value) passed to it means....

1 Answers   TCS,


Write a program for deleting duplicate elements in an array

3 Answers   Subex,


Tell me what are bitwise shift operators?

0 Answers  


WAP to accept rollno,course name & marks of a student & display grade if total marks is above 200?

4 Answers  


What is an example of structure?

0 Answers  


Categories