0 Members and 1 Guest are viewing this topic.
#include <iostream>using namespace std;int main(){ int x; cout << "Enter the integrer: "; cin >> x; cout << endl; if(x==0) { cout << "quitting..."; cout << endl; return 0;}else{ if(x>0) { x = (x-1)*x; cout << x; cout << endl; system("pause");}}}