比较两个数字 [英] Comparing two numbers
问题描述
问题是在C中写一个程序来找到2个给出的最好的
数字......容易吗?呵呵
这里'抓住了
不要使用''if''或任何条件声明
如果你想要它是一个更难的是你可以使用if但是这次
没有关系运算符或任何预定义的函数....
有人可以帮我解决一下问题....
The problem is to write a program in ''C'' to find the greatest of 2 given
numbers... Easy? huh
here''s the catch
do not use ''if'' or any conditional statements
if u want it to be a little more tougher you can use the if but this time
no relational operators or any of the predefined functions....
Can someone please help me solve the problem....
推荐答案
净化器< cn ****** @ gmail.com>潦草地写道:
purifier <cn******@gmail.com> scribbled the following:
问题是在''C'中编写一个程序来找到2个给定
数字中最大的...简单?呵呵
这里的捕获
不要使用''if''或任何有条件的陈述
如果你想要它更难一点你可以使用if但这次<没有关系运算符或任何预定义函数....
有人可以帮我解决问题....
The problem is to write a program in ''C'' to find the greatest of 2 given
numbers... Easy? huh
here''s the catch
do not use ''if'' or any conditional statements
if u want it to be a little more tougher you can use the if but this time
no relational operators or any of the predefined functions.... Can someone please help me solve the problem....
怎么样(1)做功课和(2)说英语而不是
d00dsp33k?
-
/ - Joona Palaste(pa*****@cc.helsinki.fi)-------------芬兰-------- \
\- -------------------------------------------------- -----规则! -------- /
所有的花朵力量都与我的怒视能力无法匹敌!
- 蒙哥马利伯恩斯
How about (1) doing your homework and (2) speaking English instead of
d00dsp33k?
--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-------------------------------------------------------- rules! --------/
"All that flower power is no match for my glower power!"
- Montgomery Burns
" purifier" < CN ****** @ gmail.com>在消息中写道
news:19 ****************************** @ localhost.ta lkaboutprogramming。 com ...
"purifier" <cn******@gmail.com> wrote in message
news:19******************************@localhost.ta lkaboutprogramming.com...
问题是在''C'中编写一个程序来找到2个给定
数字中最大的...简单?
是的。
呵呵
这里'抓住了
不要使用''if''或任何条件陈述
还是很容易。
如果你想让它变得更难一点你可以使用if但是这次
没有关系运算符或任何预定义的功能....
仍然很容易。
有人可以帮我解决问题....
The problem is to write a program in ''C'' to find the greatest of 2 given
numbers... Easy?
Yup.
huh
here''s the catch
do not use ''if'' or any conditional statements
Still easy.
if u want it to be a little more tougher you can use the if but this time
no relational operators or any of the predefined functions....
Still easy.
Can someone please help me solve the problem....
好的,我已经准备好了解决方案。
我现在需要的只是你的导师的电子邮件
地址,我会发送给他们。
-Mike
OK, I have the solutions all ready to go.
All I need now is your instructor''s email
address, and I''ll send them off.
-Mike
" Mike Wahler < MK ****** @ mkwahler.net>在消息中写道
news:rw ***************** @ newsread3.news.pas.earthl ink.net ...
"Mike Wahler" <mk******@mkwahler.net> wrote in message
news:rw*****************@newsread3.news.pas.earthl ink.net...
净化器 < CN ****** @ gmail.com>在消息中写道
"purifier" <cn******@gmail.com> wrote in message
news:19 ****************************** @ localhost .ta lkaboutprogramming.com ...
news:19******************************@localhost.ta lkaboutprogramming.com...
问题是在C中编写一个程序,以找到2个给定
数字中最大的一个。 ..容易?
The problem is to write a program in ''C'' to find the greatest of 2 given
numbers... Easy?
好的,这是第一种形式的提示:
0评估为假,1评估为真。
BTW你的作业是否指定输入
是否相等?如果是的话,结果应该是什么?
-Mike
OK, here''s a hint for the first form:
0 evaluates to false, 1 evaluates to true.
BTW did your assignment specify whether the inputs
could be equal? If so, what should the result be?
-Mike
这篇关于比较两个数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!