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
What is void main () in c?
Why is c called a mid-level programming language?
why programs in c are running with out #include
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
all c language question
What is #ifdef ? What is its application?
When was c language developed?
When a c file is executed there are many files that are automatically opened what are they files?
Can we assign string to char pointer?
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.
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?
How to write a multi-statement macro?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
What does emoji p mean?