I need help with a data type-related problem in my C++ code. I've tried a few different approaches and have read various , but I haven't had any luck. This is a sample of the code that causes issues:
#include <iostream>
int main() {
float totalAmount;
int discountPercentage...