Quadratic Equation Solution | Codewindow.in

Solution : C / C++ (this contains only function, write ur own main function)

//Solution


// codewindow.in



int CountDigitNumbers(int a, int b, int c){
    int min= 100000000, max = -1, i;
    for(i=0;i<n;i++){
       int x = (a*i*i) + (b*i) + c;
       if (x<min)
       min = x;
       
       if(x>max)
       max = x;
       
        }
        if(a>0) return min;
        
    
    return max;
}

// then write the main function


//--------------

Follow us

Also Checkout

Leave a Comment

Your email address will not be published. Required fields are marked *