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