By using this site, you agree to our Privacy Policy and our Terms of Use. Close

#include <iostream.h>

#include <conio.h>

void main()

{

    float a,b,r;

    cout<<"add first number: ";
    cin>>a;
    cout<<"add second number: ";
    cin>>b;
    r=a b;
    cout<<"nEl resultado de:  "<<a<<" "<<b<<" = " <<r;
    getch();
}

That should work hopefully, a lil tired.