Advertisement
endreweast

С, 7 варіант, 1 лабараторна

Sep 30th, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.39 KB | None | 0 0
  1. /* Варіант 7, лабараторна робота №1 *\
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <math.h>
  5.  
  6. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  7.  
  8. int main() {
  9.     float P,h,k,f;
  10.     printf("Enter h,k,f\n");
  11.     scanf("%f%f%f", &h,&k,&f);
  12.     P=5*h-pow(k,3)+f;
  13.     printf("P=%.3f\n", P); 
  14.     system("pause");
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement