adunb8
  • adunb8
can anyone help me im trying to multiply 3 x 5 but i get a star (*) this kind of shape for answer anyone know what is going on? first time c++ #include #include #include using namespace std; int main() { string product ; float a= 3.0, b= 5.0, c = 7.1, d=8.3, e=2.2, f=3.2 , g= 6.1; int h=5 ; cout << " " << a << endl; cout <<"*" << b << endl; cout << "-------------" << endl; product = 3.0*5.0 ; cout << product << endl; system ("pause") ; }
Computer Science
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get our expert's

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions.

adunb8
  • adunb8
can anyone help me im trying to multiply 3 x 5 but i get a star (*) this kind of shape for answer anyone know what is going on? first time c++ #include #include #include using namespace std; int main() { string product ; float a= 3.0, b= 5.0, c = 7.1, d=8.3, e=2.2, f=3.2 , g= 6.1; int h=5 ; cout << " " << a << endl; cout <<"*" << b << endl; cout << "-------------" << endl; product = 3.0*5.0 ; cout << product << endl; system ("pause") ; }
Computer Science
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

walters
  • walters
#include #include #include using namespace std; int main() { float product ;//your type must b type float float a= 3.0, b= 5.0, c = 7.1, d=8.3, e=2.2, f=3.2 , g= 6.1; int h=5 ;//wat is the use of c,d,e,f,g,h cout << " " << a <
adunb8
  • adunb8
omg thank you !!! you saved my life!!!!!
adunb8
  • adunb8
i kept writing it on the string but what i should of done is write it on float i see!!

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

walters
  • walters
because ur type was string and u r multiplying the float it means u must change the type of the product or use cast function
adunb8
  • adunb8
yea thanks!!!!

Looking for something else?

Not the answer you are looking for? Search for more explanations.