Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int n,i, a[100];
- for(i=0;i<5;i++)
- {
- scanf("%d",&a[i]);
- }
- printf("position");
- scanf("%d",&n);
- for(i=1;i<=5;i++)
- {
- if(n==a[i])
- {
- printf("%d",i);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement