mirror of
https://github.com/RustyRaptor/CS111-age.git
synced 2026-12-03 15:55:16 -07:00
20 lines
275 B
C++
20 lines
275 B
C++
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
|
|
int main() {
|
|
|
|
int n;
|
|
cout << "what's your age? ";
|
|
cin >> n;
|
|
|
|
if (n < 35){
|
|
cout << "Your insurance rate is 2.23$ per 100$";
|
|
|
|
}
|
|
else {
|
|
cout << "Your insurance rate is 4.32$ per 100$";
|
|
};
|
|
|
|
} |