Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. double formula(const int i, const int j);
  2. double formula(const int i, const int j){
  3. if(i==j){
  4. return ((1.0/(1.0+i+j))+1);
  5. }
  6. else{
  7. return (1.0/(1.0+i+j));
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement