Hello guys the title states the problem but here's my code, the problem I am facing right now is how to add the value of number[0] to number[1].
Code:#include <iostream.h> #include <conio.h> int i=0; int number[1000]; int equal; int main(){ cout<<"\nEnter number: "; cin>>number[i]; if (number[i] == 0) { getch(); cout<<"You have entered 0, Goodbye!"; return 0; } equal = number[i] + number[i]; cout<<"\n"<<equal; i++; getch(); main(); }