What's wrong with this code???
I not assuming that the fsecond is bigger...
[c]
#include <stdio.h>
#include <unistd.h>
/* Read from standard input
Returns 0 if there's nothing there
*/
int readInput(int * min, int * max){
char aux[20];
int number=0;
int i=0;
read(0, aux, 1);
if(aux[0]<'0 ...
Search found 2 matches
- Sat Jan 31, 2004 4:40 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 320761
- Sat Jan 31, 2004 4:23 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 320761
100 Wrong Answer???
I have tried everything...
I can't see what's wrong!!!
And I am not supposing that the second number is greater than the first one.
Can anyone help me?
[c]
#include <stdio.h>
#include <unistd.h>
/* Read from standard input
Returns 0 if there's nothing there
*/
int readInput(int * min, int * max ...
I can't see what's wrong!!!
And I am not supposing that the second number is greater than the first one.
Can anyone help me?
[c]
#include <stdio.h>
#include <unistd.h>
/* Read from standard input
Returns 0 if there's nothing there
*/
int readInput(int * min, int * max ...