Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Варіант 7, лабараторна робота №1 *\
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- int main() {
- float P,h,k,f;
- printf("Enter h,k,f\n");
- scanf("%f%f%f", &h,&k,&f);
- P=5*h-pow(k,3)+f;
- printf("P=%.3f\n", P);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement