The maximum of three numbers code
来源:互联网 发布:windows 开源shell 编辑:程序博客网 时间:2024/05/16 07:49
This is my first C code, if you have a pleasure please give me some suggestion.
#include<stdio.h>
#include<string.h>
int max(int x,int y,int z);
int main()
{
int a,b,c,z;
scanf("%d,%d,%d",&a,&b,&c);
z=max(a,b,c);
printf("the max is %d\n",z);
return 0;
}
int max(int x,int y,int z)
{
int maxmium;
if(x>y)
{
maxmium=x;
}else
{
maxmium=y;
}
if(maxmium>z)
{
;
}else
{
maxmium=z;
}
return maxmium;
}
- The maximum of three numbers code
- Maximum Product of Three Numbers
- Maximum Product of Three Numbers
- Maximum Product of Three Numbers
- Find the maximum of the three numbers(Take this opportunity to review the sorting algorithm)
- leetcode628. Maximum Product of Three Numbers
- leetcode 628:Maximum Product of Three Numbers
- [leetcode]628. Maximum Product of Three Numbers
- Leetcode 628 Maximum Product of Three Numbers
- leetcode#628. Maximum Product of Three Numbers
- 628. Maximum Product of Three Numbers
- 628. Maximum Product of Three Numbers
- leetcode628: Maximum Product of Three Numbers
- leetcode: 628. Maximum Product of Three Numbers
- leetcode 628. Maximum Product of Three Numbers
- LeetCode628 : Maximum Product of Three Numbers
- 628. Maximum Product of Three Numbers
- [LeetCode] 628. Maximum Product of Three Numbers
- Linux中的古老缩略语
- ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务
- uva 10105 多项式系数 (排列与组合)
- linux下C语言多线程编程实例
- 如何利用Activity的Dialog风格完成弹出框设计 “第二届 Google 暑期大学生博客分享大赛 - 2011 Android 成长篇 ”
- The maximum of three numbers code
- 我要静下来
- C# TreeView控件的使用
- 应聘时最漂亮的回答
- 在Ubuntu里创建程序的快捷方式
- 嵌入式linux串口通信自发自收测试程序
- POJ 1028 Web Navigation
- Chapter 2. Mbufs: Memory Buffers
- 六个必看的小故事