Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // gleb_bdz1_2.cpp: определяет точку входа для консольного приложения.
- //
- #include "stdafx.h"
- #include <conio.h>
- int _tmain(int argc, _TCHAR* argv[])
- {
- int i;
- double p=1;
- for (i=1; i<=15;i++)
- { p=((8/(i+4)+0.1)*p);
- }
- printf("P = %d",p);
- getch();
- return 0;
- }
Add Comment
Please, Sign In to add comment