#include<bits/stdc++.h>
      using namespace std;
      int main()
      {
          int n;
          cout << "Enter a number : "; 
          cin >> n;
          cout << n*(n+1)/2;
          return 0;
      }
      
      Apex language logo

      sum

      0

      0

      avatar
      Ayush Gupta

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.