Ace school

with brainly

  • Get help from millions of students
  • Learn from experts with step-by-step explanations
  • Level-up by helping others

A community for students.

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
See more answers at brainly.com
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

#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 <
omg thank you !!! you saved my life!!!!!
i kept writing it on the string but what i should of done is write it on float i see!!

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

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
yea thanks!!!!

Not the answer you are looking for?

Search for more explanations.

Ask your own question