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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

631


What are all different types of pointers in c?

579


What is new line escape sequence?

810


Is linux written in c?

601


what type of questions arrive in interview over c programming?

1557






There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

823


application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above

606


What are c identifiers?

629


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

671


How can I make sure that my program is the only one accessing a file?

678


Is Exception handling possible in c language?

1585


What are different storage class specifiers in c?

618


Sir i need notes for structure,functions,pointers in c language can you help me please

1945


Explain what happens if you free a pointer twice?

613


What do you understand by friend-functions? How are they used?

645