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

Can we initialize extern variable in c?

1185


what is a constant pointer in C

1248


Why doesnt this code work?

1128


What are register variables? What are the advantage of using register variables?

1237


What is volatile variable in c?

1158


Which function in C can be used to append a string to another string?

1277


What is the advantage of using #define to declare a constant?

1158


Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

2071


What does sizeof return c?

1131


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1772


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15895


Can you write the function prototype, definition and mention the other requirements.

1201


Explain how can you check to see whether a symbol is defined?

1255


How can I write a function that takes a format string and a variable number of arguments?

1105


What is keyword with example?

1128