This C++ program defines an array called data with 8 integer elements. It then uses a for loop to iterate through the array from index 7 to 0, printing each element separated by a space. The output is the numbers 5, 3, 1, 6, 7, 4, 9, 8 printed on separate lines.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
20 views1 page
#Include Using Namespace STD
This C++ program defines an array called data with 8 integer elements. It then uses a for loop to iterate through the array from index 7 to 0, printing each element separated by a space. The output is the numbers 5, 3, 1, 6, 7, 4, 9, 8 printed on separate lines.