Skip to content

Commit

Permalink
Fixed some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
lamhoangtung committed Jul 15, 2018
1 parent 6412b44 commit b09b3c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Bai thuc hanh so 2/bai1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ int main(){
int n;
cout << "Nhap so tien khach hang phai tra: ";
cin >> n;
float ans=n;
float ans=0;
if (n>=200 && n<300){
ans-=n*0.2;
ans=n*0.2;
}
else if (n>=300){
ans-=n*0.3;
ans=n*0.3;
}
cout << "So tien khach hang phai tra la: " << ans << "\n";
cout << "So tien khuyen mai la: " << ans << "\n";
return 0;
}

0 comments on commit b09b3c1

Please sign in to comment.