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

1
232
34543
4567654
can anyone tell me how to slove this c question

Answer Posted / sham

int main()
{
int i,j,k,l=0,n;
printf("Enter the length\n");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
k=2;
for(j=0;j<i+l;j++)
{
if(i<=j)
{
printf("%d",i+j-k);
k=k+2;
}
else
printf("%d",i+j);
}
l++;
printf("\n");
}
}

Is This Answer Correct ?    13 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

difference between Low, Middle, High Level languages in c ?

2144


Explain bit masking in c?

1195


What is the easiest sorting method to use?

1254


In C, What is the #line used for?

2342


Where is volatile variable stored?

1151


How can you find out how much memory is available?

1117


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

1155


find the sum of two matrices and WAP for it.

1201


Is it possible to initialize a variable at the time it was declared?

1260


Here is a good puzzle: how do you write a program which produces its own source code as output?

1176


What’s the special use of UNIONS?

1210


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

2054


What is register variable in c language?

1070


What is use of pointer?

1176


What are the types of pointers?

1193