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
difference between Low, Middle, High Level languages in c ?
Explain bit masking in c?
What is the easiest sorting method to use?
In C, What is the #line used for?
Where is volatile variable stored?
How can you find out how much memory is available?
What is the benefit of using #define to declare a constant?
find the sum of two matrices and WAP for it.
Is it possible to initialize a variable at the time it was declared?
Here is a good puzzle: how do you write a program which produces its own source code as output?
What’s the special use of UNIONS?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
What is register variable in c language?
What is use of pointer?
What are the types of pointers?