标签:关系 include 练习 ret stream 编程练习 code primer tar
1、
#include <iostream> int main() { int startNum = 0; int endNum = 0; std::cout << "please enter tow num:" << std::endl; std::cin >> startNum; std::cin >> endNum; long long sum = 0; for(int i = startNum; i <= endNum; i++) sum += i; std::cout << "the sum betwen " << startNum << " and " << endNum << "is: " << sum << std::endl; return 0; }
C++ Primer Plus第六版编程练习---第5章 循环和关系表达式
标签:关系 include 练习 ret stream 编程练习 code primer tar
原文地址:https://www.cnblogs.com/f00345709/p/9245795.html