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


Please Help Members By Posting Answers For Below Questions

Define C in your own Language.

640


What is array of structure in c?

594


What are the valid places to have keyword “break”?

651


How do I read the arrow keys? What about function keys?

616


The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

713






What is c system32 taskhostw exe?

590


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

873


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2036


What is structure pointer in c?

571


What is the difference between the expression “++a” and “a++”?

650


Why isnt there a numbered, multi-level break statement to break out

587


What is a program flowchart and how does it help in writing a program?

663


code for replace tabs with equivalent number of blanks

1640


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

632


a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

613