```
#include <iostream>
using namespace std;
int main() {
// Declare variables
float originalPrice, discountRate, discountedPrice;
// Input: Prompt user for original price and discount rate
cout << "Enter the original price: ";
cin >> originalPrice;
cout << "Enter the discount rate (in percentage): ";
cin >> discountRate;
// Calculate discount amount and discounted price
float discountAmount = (originalPrice * discountRate) / 100;
discountedPrice = originalPrice - discountAmount;
// Output: Display discount amount and discounted price
cout << "Discount Amount: " << discountAmount << endl;
cout << "Discounted Price: " << discountedPrice << endl;
return 0;
}
```