Advertisement
InnaSibirova

Nur 4

Dec 21st, 2021
1,094
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main()
  4. {
  5.     float x, p;
  6.     int n;
  7.     printf("vvedite x & p \n");
  8.     scanf("%f", &x);
  9.     scanf("%f", &p);
  10.     n = p * log10(x) + 1;
  11.     printf("%d", n);
  12.  
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement