1
232
34543
4567654
can anyone tell me how to slove this c question
Answer Posted / santhoo035
#include<stdio.h>
void di(int n)
{
int c=0,i,j;
for(i=1;i<n;i++)
{
for(j=i;j<=(2*i-1)+(i-1);j++)
{
if(j<(2*i-1))
{
printf("%d",j);
continue;
}
else if(j==(2*i-1))
c=j;
printf("%d",c--);
}
printf("\n");
}
}
int main()
{
di(5);
}
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
How can I rethow can I return a sequence of random numbers which dont repeat at all?
Explain what are global variables and explain how do you declare them?
Explain how can I pad a string to a known length?
Why c is called free form language?
What is the deal on sprintf_s return value?
what do u mean by Direct access files? then can u explain about Direct Access Files?
Explain what is operator promotion?
What’s a signal? Explain what do I use signals for?
What is class and object in c?
Can you write the algorithm for Queue?
How can I find the modification date and time of a file?
pierrot's divisor program using c or c++ code
What is sorting in c plus plus?
How do I copy files?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.