Hi,

int main()
{
int n;
cout<<"Enter the maximum limit";
cin>>n;
    for ( int i=1;i<n;i++)
    {
        if ( n % 3 !=0 && n % 5 !=0)
            cout<<n;
    }
    
}

Regards,
Rajiv Podar

  ----- Original Message ----- 
  From: interesting050585 
  To: [email protected] 
  Sent: Monday, May 12, 2008 11:39 AM
  Subject: [c-prog] solve


  Please solve a very simple program

  I have to print a list of the numbers that are not divisible by 3 and 5
  I am a beginner



   

[Non-text portions of this message have been removed]

Reply via email to