M
mathcen
hi everyone...i need you help please..i need to do a ejercice, i'm a
student..
i have this table
#define COLS 4
#define ROWS 5
int Sum[COLS] = { 0 };
int Array[ROWS][COLS] =
{
{ 192, 48, 206, 45 },
{ 180, 20, 320, 16 },
{ 221, 90, 140, 20 },
{ 432, 50, 821, 14 },
{ 820, 61, 946, 18 },
};
and § print the data in similar screen to the previous table,
remembers to use repetitive. § printf at the end of each column the
total of votes of each candidate. § printf in outstanding form the
voted candidate more. § Add one more a row to the table than
indicates, if the candidate obtained 50% of the votes, winner, the
others second round.
thanks you very much for you help!!!!!!!
student..
i have this table
#define COLS 4
#define ROWS 5
int Sum[COLS] = { 0 };
int Array[ROWS][COLS] =
{
{ 192, 48, 206, 45 },
{ 180, 20, 320, 16 },
{ 221, 90, 140, 20 },
{ 432, 50, 821, 14 },
{ 820, 61, 946, 18 },
};
and § print the data in similar screen to the previous table,
remembers to use repetitive. § printf at the end of each column the
total of votes of each candidate. § printf in outstanding form the
voted candidate more. § Add one more a row to the table than
indicates, if the candidate obtained 50% of the votes, winner, the
others second round.
thanks you very much for you help!!!!!!!