write a programming in c language,
1
3 5
7 9 11
Answer Posted / shaik shafi
#include<stdio.h>
#include<conio.h>
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 ? | 6 Yes | 6 No |
Post New Answer View All Answers
Add Two Numbers Without Using the Addition Operator
Write a program to reverse a given number in c language?
How can I find the modification date and time of a file?
When should we use pointers in a c program?
Explain data types & how many data types supported by c?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
What is array of pointers to string?
Explain how can I manipulate strings of multibyte characters?
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
Why c is called procedure oriented language?
What is a ternary operator in c?
What is the value of c?
What is the use of ?
Discuss the function of conditional operator, size of operator and comma operator with examples.