โ Back to Structs
Question 134
Average of Three Fields
Average of Three Fields
A Triple struct with int fields a, b, and c is defined and initialized to {10, 20, 30}. Print the integer average of the three fields in this exact format:
Average: 20Expected Output:
Average: 20
Topics:
Structs
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (p, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.