栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > C/C++/C#

郭炜-C语言程序设计-程序设计与算法(一)-在线练习题 1- 12

C/C++/C# 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

郭炜-C语言程序设计-程序设计与算法(一)-在线练习题 1- 12

习题集链接

#include
using namespace std;
int main(){
   int a,b,c;
    cin>>a>>b>>c;
    cout< 
#include
using namespace std;
int main(){
  char c;
  cin>>c;
  cout<<"  "< 
#include
using namespace std;
int main(){
   char c;
   cin>>c;
   cout<<(int)c;
   return 0;
}
#include
using namespace std;
int main(){
   int c;
   cin>>c;
   cout<<(char)c;
   return 0;
}
#include
using namespace std;
int main(){
   int a;
   short b;
   cout< 
#include
using namespace std;
int main(){
   float a;
   double b;
   cout< 
#include
#include
using namespace std;
int main(){
   int a,b,c;
   scanf("%d%d%d",&a,&b,&c);
   printf("%" "8d %" "8d %" "8d",a,b,c);
   return 0;
}
#include
#include
using namespace std;
int main(){
    double a;
    scanf("%lf",&a);
    printf("%.12f",a);

	return 0;
}
#include
#include
using namespace std;
int main(){
   char a;
   int b;
   float c;
   double d;
   scanf("%cn%dn%fn%lf",&a,&b,&c,&d);
   printf("%c %d %.6f %.6f",a,b,c,d);
   return 0;
}
#include
#include
using namespace std;
int main(){
   double r;
   scanf("%lf",&r);
   printf("%.2f",(4.0/3*3.14*r*r*r));
   return 0;
}
#include
#include
using namespace std;
int main(){
   int a,b;
   double c;
   cin>>a>>b;
   c=(20*1000/(3.14159*b*b*a));
   if(c>(int)c) cout<<(int)c+1;
   else cout<<(int)c;
   return 0;
}
#include
#include
using namespace std;
int main(){
	int a;
	cin>>a;
	if(a>0){
		if(a%2==0) cout<<"even";
		if(a%2==1) cout<<"odd";
	}
    return 0;
}
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/953771.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号