![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
unitswf
学习VS C++
展开
-
LeapYearJudge----C++
#include using namespace std; int main() { int year; cout<<"input year:"; cin>>year; if ((year%4==0)&&(year%100==0)||(year%400==0)) cout<<year<<"\tis Leap Year"; else cout<<year<<"\tis not Le原创 2015-09-29 09:50:56 · 309 阅读 · 0 评论 -
倒99表
#include using namespace std; int main() { int i,j; for(i=9;i>=1;i--) { for(j=1;j<=i;j++) { cout<<j<<"X"<<i<<"="<<j*i<<"\t"; } cout<<endl; } return 0; }原创 2015-09-30 14:33:03 · 247 阅读 · 0 评论 -
99表
#include using namespace std; int main() { int i,j; for(i=1;i<=9;i++) { for(j=1;j<=i;j++) { cout<<j<<"X"<<i<<"="<<j*i<<"\t"; } cout<<endl; } return 0; }原创 2015-09-30 14:35:23 · 263 阅读 · 0 评论 -
任意大于10正整数反序输出,关判断是否回文数
#include #include using namespace std; int main() { int a,b=0; int c=0; cout<<"please input any positive integer greater than 10,a="; cin>>a; while(a>0) { b=a%10; //取余,作为新数的高位 c=c*10+b;原创 2015-09-29 16:39:59 · 378 阅读 · 0 评论