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

Should I learn c before c++?

599


Explain what are the different file extensions involved when programming in c?

629


What are the different data types in C?

725


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

599


Can include files be nested? How many levels deep can include files be nested?

653






Tell me what are bitwise shift operators?

654


Who developed c language?

636


What language is c written?

574


Is c procedural or object oriented?

573


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

683


What is the purpose of ftell?

595


How can you draw circles in C?

621


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

1793


What are the features of c languages?

624


What is the best organizational structure?

637