C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 03-24-2009, 12:33 PM   #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   Reply With Quote
Old 03-24-2009, 12:38 PM   #2
CSharpener
 
vart's Avatar
 
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   Reply With Quote
Reply

Tags
arrays, min and max

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 01:53 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22