自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 问答 (1)
  • 收藏
  • 关注

原创 if语句练习

#include<iostream>using namespace std;int main(){ int n; cout<<"输入一个年份:"; cin>>n; if (n%4==0&&n%100!=0||n%400==0) cout<<n<<"年是闰年"; else cout<<n<<"年不是闰年...

2021-11-28 16:58:20 332

原创 do while语句练习

#include<iostream>using namespace std;int main(){ int i=1,sum=0; do{ sum+=i; i++; } while(i<=100); cout<<"sum of 1~100 is:"<<sum<<endl; return 0;}...

2021-11-28 16:11:21 286

原创 while语句练习

#include<iostream>using namespace std;int main(){ int a,i=0,sum=0; while(i<=10){ a=i*2+1; sum+=a; i++; } cout<<"sum is:"<<sum<<endl; return 0; }...

2021-11-28 15:45:00 325

原创 switch语句练习

#include<iostream>using namespace std;int main(){ int x; cout<<"put in a number"; cin>>x; switch(x){ case 0: cout<<"0"<<endl; break; case 1: cout<<"1...

2021-11-28 15:09:49 249

原创 大一-01

真不知道怎么学C了????

2021-11-16 20:30:41 193

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除