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...

12344321
123 321
12 21
1 1 how i print this program??

Answer Posted / venkat

#include<stdio.h>
void main()
{
int i,j,k=4,n=4;
for(i=0;i<n;i++)
{
for(j=1;j<=n-i;j++)
{
printf("%d",j);
}
printf(" ");
for(j=0;j<n-i;j++)
{
printf("%d",k-j);
//k--;
}
--k;
printf("
");
}

}

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1960


Do pointers store the address of value or the actual value of a variable?

1092


The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

1246


Can a pointer be volatile in c?

1003


What is assert and when would I use it?

1031


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

1175


What are the types of assignment statements?

1083


What is a function simple definition?

1111


Explain how can I write functions that take a variable number of arguments?

1092


What does it mean when the linker says that _end is undefined?

1111


What are the 5 data types?

1150


Is it acceptable to declare/define a variable in a c header?

1141


What is array of pointers to string?

1112


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

1086


Why should I use standard library functions instead of writing my own?

1276