Advertisement
Guest User

Nguyệt Nhi D19

a guest
Oct 21st, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. Câu 3:
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6.     float a;
  7.     cout<<"nhap so a:";
  8.     cin>> a;
  9.     a=int(a);
  10.     cout<<"phan nguyen cua so a="<<a;
  11.     return 0;
  12. }
  13. Câu 2:
  14. #include <iostream>
  15. using namespace std;
  16. int main()
  17. {
  18.     float a;
  19.     cout<<"nhap so a:";
  20.     cin>> a;
  21.     a=int(a);
  22.     cout<<"phan nguyen cua so a="<<a;
  23.     return 0;
  24. }
  25. Câu 1:
  26. #include <iostream>
  27. using namespace std;
  28. int main()
  29. {
  30.     float a;
  31.     cout<<"nhap so a:";
  32.     cin>> a;
  33.     a=int(a);
  34.     cout<<"phan nguyen cua so a="<<a;
  35.     return 0;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement