subject

Bài tập 1: Viết chương trình in ra số lớn hơn trong hai số a, b (Với 2 số a, b được nhập từ bàn phím). Bài tập 2: Viết chương trình xét xem một tam giác có là tam giác đều hay không khi biết ba cạnh của tam giác. Với 3 cạnh a, b,c được nhập từ bàn phím. Hướng dẫn: . Nhập ba cạnh của tam giác vào từ bàn phím . Nếu a=b và b=c và cẩ=a thì tam giác là tam giác đều và ngược lại tam giác không là tam giác đều. (hàm và (and))

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:00
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings starting from index 0. for each match, add one point to userscore. upon a mismatch, exit the loop using a break statement. assume simonpattern and userpattern are always the same length. ex: the following patterns yield a userscore of 4: simonpattern: rrgbryybgy userpattern: rrgbbrybgy
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Choose the answers that best complete each sentence. on average,are more expensive than other kinds of postsecondary schools. the cost of room and board includes. to save money, some students attend auniversity in their home state.
Answers: 2
question
Computers and Technology, 24.06.2019 05:30
Hey i really need some solving this problem: 1. encrypt this binary string into cipher text: 110000. include in your answer the formula the decoder would use to decrypt your cipher text in the format (coded answer) x n mod (m) = y & 2. decrypt this cipher text into a binary string: 106 you.
Answers: 2
question
Computers and Technology, 24.06.2019 10:20
Write a program that keeps asking the user for new values to be added to a list until the user enters 'exit' ('exit' should not be added to the list). these values entered by the user are added to a list we call 'initial_list'. then write a function that takes this initial_list as input and returns another list with 3 copies of every value in the initial_list. finally, inside print out all of the values in the new list. for example: input: enter value to be added to list: a enter value to be added to list: b enter value to be added to list: c enter value to be added to list: exit output: a b c a b c a b c note how 'exit' is not added to the list. also, your program needs to be able to handle any variation of 'exit' such as 'exit', 'exit' etc. and treat them all as 'exit'.
Answers: 2
You know the right answer?
Bài tập 1: Viết chương trình in ra số lớn hơn trong hai số a, b (Với 2 số a, b được nhập từ bàn phím...
Questions
question
Mathematics, 04.02.2021 23:20
question
Mathematics, 04.02.2021 23:20
question
Mathematics, 04.02.2021 23:20
question
Mathematics, 04.02.2021 23:20
question
Mathematics, 04.02.2021 23:20
question
Chemistry, 04.02.2021 23:20
Questions on the website: 13722363