![]() |
| | #1 |
| Registered User Join Date: Mar 2009
Posts: 11
| urgent please help!! Code:
this program is my project and got to submit it by next week .. people please help
the program is to write a program which read 10 numbers from a file indata.txt, find the minimum and maximum value, and write the to out put file result.txt within a message.
here is basic idea i have
#include<stdio.h>
int minvalue(intv[]), maxvalue(intu[]);
int main(void)
{
int min,max,numbers[10];
...read data file into array..
min = minvalue(numbers);
max = maxvalue(numbers);
...print out result
}
int minvalue (int nums[])
{
find minimum, assign it to the int variable min..
return min;
}
int maxvalue (int nums[])
find maximum, assign it to the int variable max
return max;
it has to be done in this format ... people please help i just a beginner i dont know how to do this.
|
| ali_1234 is offline | |
| | #2 |
| CSharpener Join Date: Oct 2006
Posts: 5,242
| read forum guidelines
__________________ If I have eight hours for cutting wood, I spend six sharpening my axe. |
| vart is offline | |
![]() |
| Tags |
| arrays, min and max |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| display character size...(quite urgent..) | karthi | C Programming | 10 | 07-11-2007 09:42 PM |
| beginner plzz help urgent | sara101 | C Programming | 11 | 01-14-2007 10:38 PM |
| Linked List Need Help Urgent | ykchua | C Programming | 5 | 08-17-2004 02:57 PM |