#include<stdio.h>
int main()
{
int m, n, k, sum=0;
FILE *inp;
inp = fopen ("data_1.txt", "r");
Type: Posts; User: ain
#include<stdio.h>
int main()
{
int m, n, k, sum=0;
FILE *inp;
inp = fopen ("data_1.txt", "r");
thank.sorry but i dont understand this line "FILE *input_file"..this is a pointer right?input_file is what?is it my file's name?
oh YES!i do it wrong.i think i dont really understand the question. i really need to stay awake all night as i have to submit this tomorrow. thank you so much for telling me my mistake. i have to...
oh thank you for telling me that.this is my 1 post actually.
so what do you mean is i should change sum/k to sum%k?i already compile the code and i dont find any incorrect result.
fopen,...
so do i need to make a new function to include all this code? and {fopen("INPUT DATA FILE", "r")}what is the meaning of INPUT DATA FILE?is it where should i put my file's name?for example if my file...
hi there.so my assignment is to write a program that asks the user to supply 3 integers k,m,n with k being greater than 1.and the program should compute all integers between m and n that are...
i know this will be a late reply but i need to ask what is the first number enter is greater than the first one?can this code proceed and give the right answer? because i have try before and it...