标签:blog color val sum include ret bsp class nbsp
#include <iostream> int main() { int sum = 0, val = 1; while (val <= 10) { sum += val; val++; } std::cout << "从 1 加到 10 的和是 " << sum <<std::endl; return 0; }
标签:blog color val sum include ret bsp class nbsp
原文地址:http://www.cnblogs.com/funnyweb/p/6212965.html