C++程序设计第六章答案.docxVIP

  • 5
  • 0
  • 约1.03万字
  • 约 17页
  • 2023-01-20 发布于江苏
  • 举报
实验六 数组 练习 6.2 代 码 如 下 : #include iostream using namespace std; int main() { int num, max = 0, count = 1; //user input 6 numbers for (int i = 0; i 6; i++) { cout Enter a number: ; cin num; //if number entered max, max = num, count = 1 again. if (num max) { max = num; count = 1; } else if (num ==

文档评论(0)

1亿VIP精品文档

相关文档