Generation

generate functionWed, 05 Apr 2023

Take 2 float numbers and check 3 digits after decimal places is same then print Equal if not print Not equal

++ #include <iostream> using namespace std; int main() { float a, b; cin >> a >> b; if (a == b) { cout << "EQUAL"; } else { cout << "NOT EQUAL"; } }

Questions about programming?Chat with your personal AI assistant