Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 2 d array in c?

0 Answers  


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

5 Answers   TCS, Vimukti Technologies,


Under what circumstances does a name clash occur?

0 Answers   InterGraph,


1.what are local and global variables? 2.what is the scope of static variables? 3.what is the difference between static and global variables? 4.what are volatile variables? 5.what is the use of 'auto' keyword? 6.how do we make a global variable accessible across files? Explain the extern keyword? 7.what is a function prototype? 8.what does keyword 'extern' mean in a function declaration?

0 Answers  


explain about storage of union elements.

2 Answers   ABC, Bosch,


Describe static function with its usage?

0 Answers  


What are the different types of storage classes in C?

3 Answers  


How to implement a packet in C

0 Answers   Aricent,


What is huge pointer in c?

0 Answers  


related to rdbms query .

2 Answers  


What are the different types of C instructions?

0 Answers   InterGraph,


what is the output on the screen? int n; n=printf("my name is %d",printf("kiran %d",printf("kumar"))); printf("\n %d \n",n);

4 Answers   TCS,


Categories