write a programming in c language,
1
3 5
7 9 11

Answers were Sorted based on User's Feedback



write a programming in c language, 1 3 5 7 9 11 ..

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

write a programming in c language, 1 3 5 7 9 11 ..

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

Post New Answer

More C Interview Questions

Does free set pointer to null?

0 Answers  


what is difference between c and c++

4 Answers  


What are enumerated types?

0 Answers  


What are the advantages of the functions?

0 Answers  


What are all different types of pointers in c?

0 Answers  






what is the first address that gets stored in stack according to a C or C++ compiler???? or what will be the first address that gets stored when we write a C source code????????

2 Answers   Apple,


What is use of bit field?

0 Answers  


Write a program to use switch statement.

0 Answers   Agilent, Integreon, ZS Associates,


How we can set and clear bit in a byte using macro function?

2 Answers   L&T, Samsung,


52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to count the number of ones in a 32 bit number? 54.write a program that print itself even if the source file is deleted? 55.Given an unsigned integer, find if the number is power of 2?

9 Answers  


Explain about the constants which help in debugging?

0 Answers  


Is null equal to 0 in sql?

0 Answers  


Categories