The AI is confused to answer either if 9.9 is bigger or 9.11. Here is the code sample for you and AI. This question made me confused too. So, I write the code in C++ to print the larger one. So, 9.9 is indeed bigger or larger than 9.11.
Here is the code, in case you want to test it:
// Online C++ compiler to run C++ program online
#include <iostream>
int main() {
// Write C++ code here
int x = 9.11;
int y = 9.9;
if(x>y)
{
std::cout << "9.11 is greater than 9.9";
}
else
{
std::cout << "9.9 is greater than 9.11";
}
return 0;
}
0 Comments