博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
3选择结构程序设计
阅读量:4323 次
发布时间:2019-06-06

本文共 1063 字,大约阅读时间需要 3 分钟。

#include 
/* 功能:输入一个大写字符,屏幕输出小写 时间:2016 11 14*/void main(){ char c; c = getchar(); if(c>='A'&&c<='Z')//就是编码问题哦 查表吧 { c = c + 32; putchar(c); } system("pause");}
#include 
/* 功能:输入一个小于9位的数 输出位数 时间:2016 11 14*///键盘录入一个不多于9位的正数 输出位数void main(){ int a; int count = 0; printf("please input a number lowed nine\n"); scanf("%d",&a); while(a!=0) { a = a / 10; count++; } printf("这个数一共有%d位",count); system("pause"); }
1 #include 
2 #include
3 /* 4 功能:判断一点是否在点上 5 时间:2016 11 14 6 */ 7 8 9 10 //判断这个点是否在圆上 在Y 不在N11 //用差的绝对值12 void main()13 {14 float a,b;15 scanf("%f,%f",&a,&b);16 if (fabs(a*a+b*b-1)<1e-3)//返回浮点数的绝对值 精度小于0.000117 //用 法: double fabs(double x);18 19 {20 printf("Y\n");21 }else22 {23 printf("N\n");24 }25 system("pause");26 27 28 29 30 }

 

转载于:https://www.cnblogs.com/lanjianhappy/p/6067008.html

你可能感兴趣的文章
web前端_Vue框架_设置浏览器上方的标题和图标
查看>>
gnome3 隐藏标题栏
查看>>
duilib入门简明教程 -- 第一个程序 Hello World(3) (转)
查看>>
Visual Studio 2008下载
查看>>
hdu1712: ACboy needs your help
查看>>
[30期] 贫嘴漫谈时间
查看>>
远程连接工具SSH和linux的连接
查看>>
WPF 自定义依赖属性
查看>>
Android之Log封装
查看>>
立方体
查看>>
Python装饰器之 property()
查看>>
嵌入式Linux安装Dropbear SSH server
查看>>
消息系统避免分布式事务
查看>>
20080416
查看>>
中医养生好书
查看>>
Data Mining --- Preprocessing
查看>>
springBoot(1)启动hello world
查看>>
一个简单地template模板
查看>>
day07 数据类型的内置方法(集合的内置方法)
查看>>
Linux学习之CentOS(十四)----磁盘管理之 硬连接与软件连接(转)
查看>>