Thread: Largest multiple

  1. #1
    Registered User
    Join Date
    Feb 2016
    Posts
    14

    Largest multiple

    Let M (p,q,r,N) be the largest positive integer less than N or equal to N that has only p , q AND r as its distinct prime factors. ex 100(2,3,5)output = 90 because 2*3^2*5. M[3,7,11,1000000][code]#include #include int main(){ int a,b,c,d,e; a=11; b=7; c=3; d=1000000; e= a*b*c; while(e < d){ if(e*a

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    Did you have a question? Notice your code did not post properly, perhaps you didn't copy it all. Also, how is this different from the previous problem you already solved?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 01-30-2013, 09:30 AM
  2. Finding next largest integer multiple
    By trinitrotoluene in forum C Programming
    Replies: 2
    Last Post: 06-16-2010, 05:48 PM
  3. Replies: 22
    Last Post: 05-29-2009, 05:44 PM
  4. Find largest and second largest number (help)
    By Arkon in forum C++ Programming
    Replies: 6
    Last Post: 01-20-2006, 11:21 PM
  5. Replies: 1
    Last Post: 05-01-2003, 02:52 PM

Tags for this Thread