Hi everyone, i'm kind of new to programming and have no idea where to start on a problem like this. Any help would be appreciated.
Screenshot - e0ce9c3331f4d4dcf68dd1e81e332dd1 - Gyazo
Printable View
Hi everyone, i'm kind of new to programming and have no idea where to start on a problem like this. Any help would be appreciated.
Screenshot - e0ce9c3331f4d4dcf68dd1e81e332dd1 - Gyazo
Do you know these?
https://wikimedia.org/api/rest_v1/me...f9f4100b1e7072
> have no idea where to start on a problem like this.
Well a printf/scanf of the input procedure would be a start.
Yeah I know I need to use those I just don't know how to imput them.
Do you know which one?
> I just don't know how to imput them.
It's that simple.Code:double v, u = 10, a = 9.8, t = 5;
v = u + a*t;
So right now im working with Screenshot - 16ce6d87bfcaaf28d72ada5adf5f68e2 - Gyazo from the previous problem, where would i imput scan f and that?
Code:#nclude <stdio.h>
int
main()
{
printf("");
return 0;
}
How on earth did you manage problem #1?
I mean, surely you could manage
Code:printf("Enter launch speed (ft/s): ");
scanf("%f",&lunchSpeed); // I'll leave you to declare a suitable variable
Problem 1 was just executing a program that pops up with a message "i'm the best programmer"
Its giving me syntax errors, I put the variable in the right place right?Code:#include <stdio.h>
int
main()
{
printf("Enter launch speed (ft/s): ");
scanf("%f", &launchSpeed); 130.5
return 0;
}
Because 130.5 is something you type into the running program, not the source code.
And declare your variables.
would declaring a variable be some like x=launch speed? in the line you said? or something like int?
sorry im asking so many questions btw, my professor didn't teach us any of this, he just gave the assignment
Do you have a book or anything?
C Tutorial - Learn C - Cprogramming.com
I should be getting a textbook on Monday.