Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

adunb8 Group Title

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 <iostream> #include <string> #include<iomanip> 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") ; }

  • one year ago
  • one year ago

  • This Question is Closed
  1. walters Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    #include <iostream> #include <string> #include<iomanip> 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 <<endl; cout<< "* "<<b<<endl; cout << "-------------" << endl; product = 3.0*5.0 ; cout << product << endl; system ("pause") ; }

    • one year ago
  2. adunb8 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    omg thank you !!! you saved my life!!!!!

    • one year ago
  3. adunb8 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    i kept writing it on the string but what i should of done is write it on float i see!!

    • one year ago
  4. walters Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    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

    • one year ago
  5. adunb8 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    yea thanks!!!!

    • one year ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.