Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdio.h>
- main()
- {
- int v[5], w[5], i, j;
- printf("v:\n");
- for (i=0; i<5; i++) scanf("%d",&v[i]);
- printf("w:\n");
- for (i=0; i<5; i++) scanf("%d",&w[i]);
- for (i=0; i<5; i++)
- {
- for (j=0; j<5; j++)
- {
- if (v[i]>w[j])
- {
- if ((v[i]%w[j])%2!=0)
- printf("v[%d]=%d e w[%d]=%d\n",i,v[i],j,w[j]);
- }
- }
- }
- system("PAUSE");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement