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
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What are the 4 types of programming language?
write a progrmm in c language take user interface generate table using for loop?
Why is c known as a mother language?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
How would you rename a function in C?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
Explain what is the difference between a string and an array?
What is build process in c?
What is the scope of global variable in c?
List some applications of c programming language?
Explain what is the benefit of using an enum rather than a #define constant?
What is size of union in c?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
What are # preprocessor operator in c?