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

What is void main () in c?

1150


Why is c called a mid-level programming language?

1152


why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

1710


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

2017


all c language question

2376


What is #ifdef ? What is its application?

1053


When was c language developed?

1140


When a c file is executed there are many files that are automatically opened what are they files?

1036


Can we assign string to char pointer?

1041


write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.

5399


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

1169


How to write a multi-statement macro?

988


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3840


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

1043


What does emoji p mean?

1046