write a programming in c language,
1
3 5
7 9 11
Answer Posted / rehan
void main()
{
int i,j,k;
clrscr();
k=1;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d ",k);
k=k+2;
}
printf("\n\n");
}
getch();
}
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What are register variables in c?
What is a null string in c?
How #define works?
Where we use clrscr in c?
What is the best way of making my program efficient?
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
Why static is used in c?
What is the 'named constructor idiom'?
What is the concatenation operator?
How can I implement sets or arrays of bits?
Is that possible to add pointers to each other?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
what do the 'c' and 'v' in argc and argv stand for?
What are inbuilt functions in c?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)