Guest User

Untitled

a guest
Aug 14th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. // gleb_bdz1_2.cpp: определяет точку входа для консольного приложения.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <conio.h>
  6.  
  7.  
  8. int _tmain(int argc, _TCHAR* argv[])
  9. {
  10.      
  11.     int i;
  12.     double p=1;
  13.  
  14.  
  15.     for (i=1; i<=15;i++)
  16.     { p=((8/(i+4)+0.1)*p);
  17.       }
  18.     printf("P = %d",p);
  19.     getch();
  20.  
  21.  
  22.  
  23.     return 0;
  24. }
Add Comment
Please, Sign In to add comment