nevermind i added a getchar(); and it all worked out. Thank you sooo much
Type: Posts; User: dKarayof
nevermind i added a getchar(); and it all worked out. Thank you sooo much
Thank you so much!
This code is exiting however before I have a chance to read the output. Is it the compiler I'm using?
i dont think i did
I don't get any of those errors. My professor specified to use long double when I went to office hours and told me to add the "l" inside the %f
I want to know why the only input that yields an output is 90 for the degrees. If I type anything else in the program yields nothing. I think my code is correct when deducing whether or not the...
I have written the following code.
Given two sides and an angle, calculate the third side and the remaining two angles in the triangle. Then output if it is right, obtuse or acute.
My problem is...
#include<stdio.h>#include<math.h>
#define PI 3.14159265
int main(void)
{
/*Creat file pointers*/
FILE *fin *fout;
float r, c, area, volume, stepsize;
int steps2take;
I fixed some of the problems you described... I feel like my for loop looks exactly how it should I'm not sure why it isn't written to repeat however many times the user specified... isnt that...
and in the for loop i changed "i" to "r" for the radius
I'm not sure what questions to ask... firstly, how do I get it to have an output table like that one (in the program) and also, why isn't it outputting to a txt file like I programmed it to do? My...
I also have the following, but I'm not sure how useful it would be or how to relate it to the previous post
#include<stdio.h>#include<math.h>
#define PI 3.14159265
int main(){
...
I'm a bit confused by a problem on some homework for my programming test. I'm not really understanding what the question is asking though, or how to apply it to the text file I'm supposed to be...