Skip to content

Commit c2876ec

Browse files
committed
Create prob9.c
1 parent 0c83107 commit c2876ec

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

prob9.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//Solved by Divija, Dept of CSE
2+
3+
4+
#include<stdio.h>
5+
#include<stdlib.h>
6+
main()
7+
int i,j,n,k;
8+
int input;
9+
printf("enter the size of the array");
10+
scanf("%d",&n);
11+
input=(int*)
12+
malloc(size of (int)*(n+1));
13+
for(i=1;i<=n;i++)
14+
printf("enter the value should be between 1 and %d",n)
15+
scanf("%d",&input[i]);

0 commit comments

Comments
 (0)