1
232
34543
4567654
can anyone tell me how to slove this c question
Answer Posted / anjali
#include <stdio.h>
int main ()
{
int k = 2;
int i, j,l;
for (i = 0; i < 5; i++)
{
for (j = i+1; j < k; j++)
{
printf("%d", j);
}
k = k + 2;
for (l = j - 2; l > i; l--)
{
printf("%d", l);
}
printf("\n");
}
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What is a good data structure to use for storing lines of text?
What is pointer and structure in c?
Who developed c language and when?
How do you construct an increment statement or decrement statement in C?
How to throw some light on the b tree?
What is table lookup in c?
What are the advantages of c preprocessor?
Mention four important string handling functions in c languages .
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
Is c object oriented?
Explain how can I remove the trailing spaces from a string?
What are variables c?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
How will you write a code for accessing the length of an array without assigning it to another variable?
What are the different types of C instructions?