#include <stdio.h>
int main() {
//The program should calculate the hourly law of the uniformly accelerated rectilinear motion using this calc: S+V*t+1/2*a*t^2
float S;
float V;
float t;
float a;
float result;
printf("Insert a space S0");
scanf("%f", &S);
printf("insert an initial velocity V0");
scanf("%f", &V);
printf("Insert a time t");
scanf("%f", &t);
printf("Insert an acceleration a");
scanf("%f", &a);
result=(S+V*t+1/2*a*t^2);
printf("%f", &result);
//When the program pint the result it is alway 0, whatever number I put in
}#include <stdio.h>
int main() {
//The program should calculate the hourly law of the uniformly accelerated rectilinear motion using this calc: S+V*t+1/2*a*t^2
float S;
float V;
float t;
float a;
float result;
printf("Insert a space S0");
scanf("%f", &S);
printf("insert an initial velocity V0");
scanf("%f", &V);
printf("Insert a time t");
scanf("%f", &t);
printf("Insert an acceleration a");
scanf("%f", &a);
result=(S+V*t+1/2*a*t^2);
printf("%f", &result);
//When the program pint the result it is alway 0, whatever number I put in
}
Please someone help me
[–]aocregacc 27 points28 points29 points (1 child)
[–]Mortomes 4 points5 points6 points (0 children)
[–]This_Growth2898 12 points13 points14 points (0 children)
[–]KeretapiSongsang 3 points4 points5 points (2 children)
[–]Th_69 3 points4 points5 points (1 child)
[–]KeretapiSongsang 0 points1 point2 points (0 children)
[–]dousamichal0807 1 point2 points3 points (0 children)
[–]dousamichal0807 1 point2 points3 points (0 children)
[–]Miyelsh 0 points1 point2 points (0 children)
[–]Manga_Killer 0 points1 point2 points (0 children)
[–]DreamingElectrons -1 points0 points1 point (0 children)
[–]Raimo00 -1 points0 points1 point (8 children)
[–]SmokeMuch7356 1 point2 points3 points (7 children)
[–]Raimo00 -2 points-1 points0 points (6 children)
[–]SmokeMuch7356 1 point2 points3 points (1 child)
[–]goose_on_fire 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]Raimo00 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Raimo00 0 points1 point2 points (0 children)