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
can we change the default calling convention in c if yes than how.........?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
What is static identifier?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
Explain 'bit masking'?
What are pragmas and what are they good for?
What is a example of a variable?
Can you please explain the scope of static variables?
What is meant by errors and debugging?
What tq means in chat?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
How do you define a function?
What are derived data types in c?
Is javascript written in c?
What is file in c language?