Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main(){
- short Tcase,i;
- double angka;
- cin >> Tcase;
- for(i=1;i<=Tcase;i++){
- cin >> angka;
- double jawab = (3.0/4.0) - (1.0/(2.0*(angka+1.0)*(angka+2.0))); //rumus untuk persoalan
- printf("%.11f\n",sum);
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment