write a programming in c language,
1
3 5
7 9 11
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Can a program have multiple main() functions?
write a c program to find largest of three numbers using simple if only for one time.
When the macros gets expanded?
What is the total generic pointer type?
sir i wanted to know how we wap in c to add numbers without using arithmetic operator in which digits are entered by user?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
swapping of two numbers without using third variable using AND and OR operators
what is the difference b/w compiler and debugger?
How can I access an I o board directly?
which is an algorithm for sorting in a growing Lexicographic order
What are different types of operators?
Explain b+ tree?