Course Solutions Uncategorized (Solved) : Please One Check Code Appear Mismatch Number Include Include Void Calculatepi Int Mypi Int Q28206491 . . . .

(Solved) : Please One Check Code Appear Mismatch Number Include Include Void Calculatepi Int Mypi Int Q28206491 . . . .

 

please can any one check the code why the * does not appearunder the mismatch number

#include
#include
void CalculatePi(int myPI[], int size, int numerator, intdenominator);
void PrintArray(int myPI[], int goodPI[], int size);

void CalculatePi(int myPI[], int size, int numerator, intdenominator)
{
double quotient;
unsigned long num;
int i;
quotient = (double)numerator / (double)denominator;
              
for (i = 0; i {
  quotient *= 10;
    num = quotient;
for (i = size – 1; i >= 0; i–)
{
  myPI[i] = num % 10;
  num /= 10;
}
}
void PrintArray(int myPI[], int goodPI[], int size)
{
int i;
char marker[size];
for (i = 0; i   marker[i] = ‘ ‘;
/*compare the 2 PIs and mark the first mismatch with a ‘*’ */
for (i = 0;

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

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

Related Post