Hello, here is my code so far:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define empty 0
#define mx 64
Type: Posts; User: lolcats22
Hello, here is my code so far:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define empty 0
#define mx 64
So I changed the c, d, e and all that business - now I'm getting that there's too few arguments to function 'trapeze'
Why are there too few arguments?
Hi there, here is my code so far:
#include <stdio.h>
#include <math.h>
float f(float x)
{
Hi,
I have to write a program that takes the input of 3 numbers, and organizes them in a way that x < y < z. Here's what I have:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Thank you! It works fine now.
edit: I also changed the || to &&, and the program gives what I need now.
Ok, so I revamped my code a little bit:
#include <stdio.h>
#include <math.h>
double function(double x);
Hi there,
I'm having trouble getting the desired output. whenever I enter a number, my program just freezes and doesn't do anything. if it does do something, it's always the number I input. ...
the editing was not done before any messages were made, nor was it done to the actual code. it was merely to show that I needed a table that looks like the one in the first code box, since regular...
Thank you both, I was able to fix my problems and get the table set up correctly.
Hi there,
I need some help with formatting on my program. I can't seem to get the table to look like this:
Ok, I think I see what you're saying. When I'm calling on the function in main, I don't wanna use things like "depth" or "celsius_at_depth" but rather things like "d" and "cel" - somewhat right?
...
Hello,
I am having some problems with the same program too. Here is my code:
#include <stdio.h>
double celsius_at_depth(double depth);
Thanks for the help. I was able to figure it out and get the exact output I needed for homework.
DISREGARD THIS POST, I FIGURED OUT MY MISTAKES. (I don't know how to delete threads lol)
Ok, maybe the topic title could be misconstrued but I'll try explaining what I don't understand.
So I...
Alright, thanks, I will check it out.
Ok, I changed my conversions, and everything seems to be working properly. Thank you.
I just have one quick question (this isn't required for homework; I just wanna know how to do this): How do...
Hello,
I'm still quite new to programming, so bear with me if I am failing pretty hard.
I have to write a program that asks for the input of two coordinates, (x,y), and will provide the output...