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
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
How do we print only part of a string in c?
Can we assign string to char pointer?
What is the use of typedef in c?
What does c mean in basketball?
What is a substring in c?
Write a program to find the biggest number of three numbers in c?
What are linker error?
Which is the memory area not included in C program? give the reason
What is maximum size of array in c?
Explain low-order bytes.
Differentiate between the = symbol and == symbol?
Is c procedural or object oriented?
What is the role of && operator in a program code?
What are examples of structures?