Our author again made several mistakes. Try to eliminate all errors.
Remember that your program must produce a result that exactly matches the output.
Arrays
Errrors
Report a typo
Sample Input 1:
Sample Output 1:
23 years --> tel: 5532332
43 years --> tel: 4433223
54 years --> tel: 5544334Write a program in C++
#include <iostream>
using namespace std;
int main(){
int []numbers{5532332, 4433223, 5544334};
int *ages[] = {23,43,54}
cout << ages[0] << "-->" << numbers[0];
cout << ages[1] << "-->" << numbers[3];
cout << ages[5] << "-->" << numbers[2];
return;
}
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.