⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sum100.cpp

📁 数据结构常用算法合集
💻 CPP
字号:
 //sum100.cpp
 #include <iostream.h>			//cout
 #include <conio.h>				//getch()
 void main()
 { int top, bottom , sum ;
   top = 1;						//上底
   bottom = 100;					//下底
   sum = (top + bottom ) * 100/2;	//梯形面积 高为100
   cout << "1+2+..+100=" << sum << endl;
   getch();						//暂停
 }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -