write a programming in c language,
1
3 5
7 9 11
Answers were Sorted based on User's Feedback
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 |
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 |
What is the explanation for cyclic nature of data types in c?
What is the use of getchar functions?
Do you know what is a programing language ?
What’s the special use of UNIONS?
Write a program to print factorial of given number using recursion?
Why pointers are used in c?
WHAT IS HEADER?
Can i use “int” data type to store the value 32768? Why?
Should a function contain a return statement if it does not return a value?
what is volatile in c language?
9 Answers Cap Gemini, HCL, Honeywell, TCS, Tech Mahindra,
what is the little endian and big endian?
What is #pragma directive?how it is used in the program? what is its advantages and disadvantages?