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

how do you redirect stdout value from a program to a file?

1 Answers  


Explain the array representation of a binary tree in C.

0 Answers   Genpact,


main() { int a=0; if(a=0) printf("Ramco Systems\n"); printf("India\n"); } output?

7 Answers   Ramco,


1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

1 Answers  


the format specified for hexa decimal is a.%d b.%o c.%x d.%u

7 Answers   TCS,






When should we use pointers in a c program?

0 Answers  


what is difference between null and nul in c language

2 Answers  


please can some one guide me, to the answer Write a C program to enter 15 numbers as an input from the keyboard and program will find and print odd numbers and their average. i have studied while and do while loop for loop if and else if switch

2 Answers  


#include<stdio.h> main() { int a=1; int b=0; b=++a + ++a; printf("%d %d",a,b); }

7 Answers   Infosys,


Explain what is wrong with this program statement? Void = 10;

0 Answers  


any string of bits of length 'n' represents a unique non- negative integer between.............?

2 Answers  


Write a program to know whether the input number is an armstrong number.

0 Answers   Wipro,


Categories