Hãy nhập câu hỏi của bạn vào đây, nếu là tài khoản VIP, bạn sẽ được ưu tiên trả lời.
Boos mej tooi laf bacs six vaf lamf vieecj taij mootj beenhj vieenj
C++:
Bài 1:
#include <iostream>
int main()
{
int user_input = 0;
int answer = 0;
std::cout << "Dien so cua ban vao day: ";
std::cin >> user_input;
for(int i = 1; i <= user_input; i++)
{
answer += i;
}
std::cout << std::endl << "Dap so: " << answer << std::endl;
return 0;
}
Bai 2:
#include <iostream>
int main()
{
int user_input = 0;
int answer = 0;
std::cout << "Dien so cua ban vao day: ";
std::cin >> user_input;
for(int i = 1; i <= user_input; i++)
{
answer += i*i;
}
std::cout << std::endl << "Dap so: " << answer << std::endl;
return 0;
}
Bai 3:
#include <iostream>
int main()
{
int user_input = 0;
double answer = 0;
std::cout << "Dien so cua ban vao day: ";
std::cin >> user_input;
for(int i = 1; i <= user_input; i++)
{
answer += 1.0/i;
}
std::cout << std::endl << "Dap so: " << answer << std::endl;
return 0;
}
Làm tiếp sau :)
Lời giải bằng python, C, C++, java, javaScript, scratch nhé.
Đây là đố vui.
1. It was warm, so I took off my coat. (take).
2. The film wasn’t very goor. I didn’t enjoy it very much. (enjoy)
3. I knew Sarah was very busy, so I …didn't disturb.. her (disturb)
4. I was very tired, so I …left.. the party early. (leave)
5. The bed was very uncomfortable. I …didn't sleep.. very well (sleep)
6. The window was open and a bird …flew.. into the room (fly)
7. The hotel wasn’t very expensive. It …didn't cost.. very much (cost)
8. I was in a hurry, so I …didn't have.. time to phone you (have).
9. It was hard carrying the bags. They …were.. very heavy. (be)
milk
noodles
teacher
money
T-shirt
1. milk
2. noodles
3. teacher
4. money
5. T - shirt