add output 1-100
This commit is contained in:
parent
5ac88c0cf8
commit
774db61377
9
main.cc
9
main.cc
@ -2,8 +2,15 @@
|
|||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
int main() {
|
void output(){ //循环输出1-100
|
||||||
|
for(int i = 1; i <= 100; i++){
|
||||||
|
cout << i << endl;
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
output();
|
||||||
cout << "hello world!" << endl;
|
cout << "hello world!" << endl;
|
||||||
cout << "hello too!" << endl;
|
cout << "hello too!" << endl;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user