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 function pointer c?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
How many types of functions are there in c?
When we use void main and int main?
What is wrong with this initialization?
Define recursion in c.
What is ponter?
What is function definition in c?
Why is c still so popular?
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
Explain indirection?
Which is an example of a structural homology?
Define macros.
How do you print only part of a string?
How can I open a file so that other programs can update it at the same time?