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

Is using exit() the same as using return?

0 Answers  


Why c is called procedure oriented language?

0 Answers  


What does the error message "DGROUP exceeds 64K" mean?

0 Answers   Celstream,


is assignment operator is arithmatic or not

3 Answers   Infosys,


Write a c program to read a positive number and display it in words.? ex: 123=one two three help me....

2 Answers  


What is dynamic dispatch in c++?

0 Answers  


Why are all header files not declared in every c program?

0 Answers  


Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent

0 Answers  


What is pragma c?

0 Answers  


What is a far pointer in c?

0 Answers  


How can we open a file in Binary mode and Text mode?what is the difference?

1 Answers   PanTerra,


program for following output using for loop? 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5

8 Answers   Infosys,


Categories