fork download
  1. #include<iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main ()
  6. {
  7. long long N;
  8. cin >> N;
  9. cout << (N*(N+1)/2) <<".00\n";
  10. return 0;
  11. }
Success #stdin #stdout 0s 15240KB
stdin
3
stdout
6.00