Basically, the user inputs two values which are added and divided by 2 to get the mean.
Using the mean, the values of A B and C are obtained. For example,
184 = 1.84 x 10^2 (in scientific...
Type: Posts; User: jbl772
Basically, the user inputs two values which are added and divided by 2 to get the mean.
Using the mean, the values of A B and C are obtained. For example,
184 = 1.84 x 10^2 (in scientific...
B needs to be an int value of whatever is after the decimal.
So for 7.4:
A = 7
B= 4 (not 0.4)
Edit: Ignore D (Nothing to do with my problems)
#include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int main()
{
int A, B, C, D;
I also tried using a loop
while (mean>10)
{
B=mean%10;
}
Hmm well basically the user inputs Rmin and Rmax values. Then the mean is computed.
I have three variables, A B and C.
A B & C are parts of the mean in scientific notation. For example,
...
Hey I'm really stuck on how to show only decimal places in a number.
For example, if I had 1.234 I would only want to output .234