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


Please Help Members By Posting Answers For Below Questions

Is c easy to learn?

562


Explain what is the purpose of "extern" keyword in a function declaration?

623


Does c have enums?

602


All technical questions

1511


What is a program flowchart?

605






What is meant by type casting?

629


Explain what does a function declared as pascal do differently?

642


What is d scanf?

595


What is openmp in c?

612


What is the time and space complexities of merge sort and when is it preferred over quick sort?

676


Where are the auto variables stored?

626


Is there sort function in c?

578


Define recursion in c.

702


What is #define in c?

622


How many keywords are there in c?

591