摘要:
输出一个由 * 符号所组成的三角形,要求第一行十个 * ,第二行 九个 * 第三行 八个 * 依次类推,最后一行一个 *。使用双重for循环完成。 阅读全文
摘要:
输出一个由 * 符号所组成的三角形,要求第一行一个 * ,第二行 两个 * 第三行 三个 * 依次类推,最后一行10个 *。使用双重for循环完成。 阅读全文
摘要:
输出一个由 * 符号所组成的矩形,要求每行有50个 * ,一共需要有60行。使用双重for循环完成 阅读全文
摘要:
#include<iostream> using namespace std; int main(){ cout<<(6&3)<<endl; return 0; } 阅读全文
摘要:
#include<iostream> using namespace std; int main(){ short int a=2; a-=1; cout<<a<<endl; return 0; } 阅读全文
摘要:
#include using namespace std; int main(){ int a=5,b; b=a++; cout using namespace std; int main(){ int a=5,b; b=++a; cout<<b<<endl; return 0; } 阅读全文
摘要:
#include using namespace std; int main(){ int a=11,b=1,c; while(a>0,b using namespace std; int main(){ for (int a=1;a<=11;a++){ if(a%2==1) cout<<a<<endl; } return... 阅读全文
摘要:
#include using namespace std; int main(){ int x=8999; int value=x*1000/1000; cout using namespace std; int main(){ int x=8999; int value=x/1000*1000; cout using namespace std; int main... 阅读全文
摘要:
#include<iostream>using namespace std;int main(){ int short a; a=684318; cout<<"a="<<a<<endl; return 0;} 阅读全文