Variants
Views
Actions

Cppreference:Archives

From cppreference.com
Revision as of 04:00, 16 January 2020 by 213.233.108.202 (Talk)


  1. include <iostream>

using namespace std;

int main(){ int n; int sum; cout<<"n="; cin>>n; sum=n*(n-1); cout<<sum; return 0; }