الأجوبة
#include<iostream>
using namespace std;
int main(){
int n;
double cost;
cout<<"enter the nember "<<endl;
cin>>n;
if(n<=50)
cost=n*10;
else
if(n<=150)
cost=(n-50)*15+500;
else
cost=(n-150)*20+2000;
cout<<"the bill cost="<<cost<<endl;
return 0;}
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال