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

in linking some of os executables are linking name some of them

1763


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

1720


What are the loops in c?

684


What are the general description for loop statement and available loop types in c?

786


What is difference between array and pointer in c?

629






What will be your course of action for a push operation?

744


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

890


What is the purpose of the statement: strcat (S2, S1)?

722


Are c and c++ the same?

707


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

1642


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

1567


What is a protocol in c?

634


Do you know the difference between exit() and _exit() function in c?

699


Can you return null in c?

714


What is selection sort in c?

702