I need this in C please, none of the other answers I could find worked.
CHALLENGE ACTIVITY 392488.2426308.qx3zay7 Jump to level 1 For any element in keysList with a value greater than 50, print the corresponding value in itemsList, followed by a semicolon (no spaces). Ex: If the input is: 32 105 101 35 10 20 30 40 the output is: 20; 30; 1 #include 2 3 int main(void) { 4 5 6 7 8 5.5.1: Multiple arrays. 12 13 14 15 16 17 9 scanf("%d", &keysList[0]); 10 scanf("%d", &keysList[1]); 11 scanf("%d", &keysList[2]); scanf("%d", &keysList[3]); 1928 20 21 2222 23 24 25 } const int SIZE_LIST = 4; int keysList[SIZE_LIST]; int itemsList[SIZE_LIST]; int i; scanf("%d", &itemsList[0]); scanf("%d", &itemsList[1]); scanf("%d", &itemsList[2]); scanf("%d", &itemsList[3]); /* Your code goes here */ printf("\n"); return 0;
I need this in C please, none of the other answers I could find worked.
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am