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

How can I get the current date or time of day in a c program?

1168


Tell me when is a void pointer used?

1106


What is memcpy() function?

1051


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

1025


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

2820


What are the differences between new and malloc in C?

1075


How does free() know explain how much memory to release?

1015


What is a void pointer in c?

1046


What are called c variables?

1016


What is the meaning of typedef struct in c?

1007


What is the difference between #include

and #include “header file”?

974


What is the use of a semicolon (;) at the end of every program statement?

1417


Is fortran faster than c?

987


What is the difference between the local variable and global variable in c?

931


What is the maximum length of an identifier?

1139