write program on arrays
Answers were Sorted based on User's Feedback
Answer / antony
#include<stdio.h>
#include<conio.h>
void main()
{
int a[10],i;
for(i=1;i<=10;i++)//getting data from user
{
scanf("%d",&a[i]);
}
for(i=1;i<=10;i++)//print the data
{
printf("%d",a[i])
}
getch();
}
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / rina
#include<stdio.h>
#include<conio.h>
void main()
{
int i,a[5],n;
clrscr();
printf("\nenter the no.");
scanf("%d",&n);
for(i=1;i<=5;i++)
{
scanf("%d",&a[i]);
}
for(i=1;i<=5;i++)
{
printf("%d",a[i]);
}
getch();
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / shrish cahndra tripathi
#include<sotdio.h>
#include<conio.h>
void main()
{
int a[5];
int b=1;
while b<5;
printf("/n enter value of a1");
scanf("%d",a0);
printf("/n enter value of a1");
scanf("%d",a1);
printf("/n enter value of a1");
scanf("%d",a2);
printf("/n enter value of a1");
scanf("%d",a3);
printf("/n enter value of a1");
scanf("%d",a4);
printf("/n values are :- %d, %d, %d, %d, %d"a[i]);
getch();
clrscr();
}
| Is This Answer Correct ? | 2 Yes | 5 No |
Calculate 1*2*3*____*n using recursive function??
print out put like this form 1 2 3 4 5 6 3 5 7 9 11 8 12 16 20
how can u print a message without using any library function in c
Write a program to produce the following output in c language? 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
What is the auto keyword good for?
2. What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value
write a program to generate address labels using structures?
Write a program to accept a character & display its corrosponding ASCII value & vice versa?
State the difference between realloc and free.
Can you think of a logic behind the game minesweeper.
What is the -> in c?
send me the code of flow chart generator using C-programming language amd this code should calculate the time and space complexity of the given progran and able to generate flowchart according to the given program?