Skip to content
Snippets Groups Projects
Commit 035f127d authored by Mikołaj Suszek's avatar Mikołaj Suszek
Browse files

Upload New File

parent 8a05d169
No related merge requests found
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main() {
float Fx, Fy, Fz;
float sx, sy, sz;
printf("Podaj wartosc skladowych x y z sily \n");
scanf("%f %f %f", &Fx, &Fy, &Fz);
printf("Podaj wartosc skladowych x y z przesuniecia \n");
scanf("%f %f %f", &sx, &sy, &sz);
float praca=(Fx*sx+Fy*sy+Fz*sz);
printf("Praca wynosi: \n %f J\n", praca);
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment