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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

If the size of int data type is two bytes, what is the range of signed int data type?

1012


What is the auto keyword good for?

1131


How can a number be converted to a string?

1307


What is the process to create increment and decrement stamen in c?

1045


What is function pointer c?

1092


What is the purpose of macro in C language?

1102


What does == mean in texting?

1275


Write a program on swapping (100, 50)

1097


What do you understand by friend-functions? How are they used?

1193


What are the types of functions in c?

974


Do you know the purpose of 'register' keyword?

1011


Why is c fast?

1043


List a few unconditional control statement in c.

972


c language interview questions & answer

1945


What are the types of pointers?

1093