Answer to Question #152761 in C++ for Arslan khan

Question #152761
Write a program which takes as input two floating point numbers and prints "equal" if the two are equal.
1
Expert's answer
2020-12-28T02:40:03-0500
#include <iostream>


using namespace std;


int main()
{
    float first,second;
    cout<<"Enter first: ";cin>>first;
    cout<<"Enter second: ";cin>>second;
    if(first==second)
        cout<<"equal";
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog