I want to add the series numbers except square numbers
For example,if n = 10, Add : 1+2+3+5+6+7+8+10 = 42(except 4 and 9)
but I got problem to except the square number by using continue statement.
Please help me.
#include <iostream>
using namespace std;
int main()
{
int n;
cout<<"enter number to add"<<endl;
cin>>n;