Computing Fundamentals (CS116) 2D Arrays Lecture PDF

Summary

This document discusses 2D arrays in computer science, specifically in the context of a Computing Fundamentals (CS116) lecture. It contains examples and programming exercises. The document does not mention any specific exam board or year.

Full Transcript

Computing Fundamentals (CS116) Arrays (continued) 2D Arrays Try it yourself Write a program that fills an array with 20 integers then prints their average #include int main() { float avg = 0; int sum =0; int x = 0; int num; for (x = 0 ; x

Computing Fundamentals (CS116) Arrays (continued) 2D Arrays Try it yourself Write a program that fills an array with 20 integers then prints their average #include int main() { float avg = 0; int sum =0; int x = 0; int num; for (x = 0 ; x

Use Quizgecko on...
Browser
Browser