|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming | |
Mods please delete
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | |||||||||
|
AMD Overclocker
|
Hey guys,
__________________I'm using multiple functions to divide up the tasks of entering values, finding their minimum, and their average. I want the inputted values to be outputted where I BOLDED, RED COLORED, AND CAPITALIZED THE TEXT. How would I go about doing it? Code:
#include <iostream>
using namespace std;
int GetValues();
int FindLowest();
int CalcAverage();
int main(){
int score, sum;
GetValues();
cout << "The numbers entered are: " << WHAT GOES HERE???
FindLowest();
return 0;
}
int GetValues(){
int score, counter[5];
int score1, score2, score3, score4, score5;
double sum;
for (int i = 0; i < 5; i++)
{cout << "Enter score ";
cin >> score;
sum += score;
}
cout << "The sum is: " << score << endl;
return 0;
}
int FindLowest(){
int score, count, min = 101;
if (score < min)
min = score;
cout << "The minimum is " << min;
getchar();
getchar();
return 0;
}
Last edited by godsgift2dagame : 09-29-09 at 08:49 PM |
|||||||||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|