Computers and Technology
Computers and Technology, 29.03.2021 09:30, booney46

Rapid va rog PLSSS 1. Se citeşte un număr natural n cu cel mult 9 cifre, dintre care măcar una este pară şi nenulă. Să se elimine cifrele impare şi apoi să se afişezenumărul. Ex: pentru n=2500369 se va afişa 2006 pentrun=1500369 se va afişa 6. pentru n=120059 se va afişa 200.
2.Se citesc mai multe numere naturale mai mici decât 10000, până la întâlnirea lui 0. Să se afişeze toate perechile de numere citite consecutiv cu proprietatea că primul număr se împarte exact la produsul cifrelor nenule ale celui de-al doilea număr. Ultimul număr, 0, nu se ia încalcul. Ex: pentru numerele 245, 51, 300, 35, 77, 17, 111, 42, 67, 0 se va afişa (245, 5), (51, 300), (300, 35), (77,17), (17, 111), (42, 67).

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:10, 17795
Look at the far left lane in the picture. explain what the red car is doing and what it needs to do to travel safely.
Answers: 2
image
Computers and Technology, 22.06.2019 13:00, jairus34
We as humans write math expression in infix notation, e. g. 5 + 2 (the operators are written in-between the operands). in a computer’s language, however, it is preferred to have the operators on the right side of the operands, i. e. 5 2 +. for more complex expressions that include parenthesis and multiple operators, a compiler has to convert the expression into postfix first and then evaluate the resulting postfix. write a program that takes an “infix” expression as input, uses stacks to convert it into postfix expression, and finally evaluates it. it must support the following operations: + - / * ^ % (example infix expression: (7 - 3) / (2 + 2)postfix expression: 7 3 - 2 2 + /result: 1guidelines: 1. you will need to use stacks in three placesa. one for the parenthesis check [char stack]b. one during infix to postfix [char stack]c. one during evaluation [int stack]for a and b above, you can use same array and same push, pop method as both ofthem are char. but for evaluation you have int stack and you might consider to createanother push pop method to handle it. maybe push_int, pop_int, etc. or find otherstrategy to utilize existing push pop method2. you can create a function for obtaining operator priority. that function should take anoperator as input and return its priority as an integer. this function will you a lot andreduce repeated code3. during evaluation you will need to convert char into integer. example for single digit: char c = '5'; int x = c - '0';
Answers: 2
image
Computers and Technology, 22.06.2019 23:30, elizabethburkha
Which text format is this, "the text is transcribed exactly as it sounds and includes all the utterances of the speakers. "?
Answers: 2
image
Computers and Technology, 23.06.2019 20:30, kaylee2828
Column a of irma’s spreadsheet contains titles for each row, but her document is too big and will be printed three pages across. she wants to be sure that every page will be understood. what can irma do to with this problem?
Answers: 3
Do you know the correct answer?
Rapid va rog PLSSS 1. Se citeşte un număr natural n cu cel mult 9 cifre, dintre care măcar una est...

Questions in other subjects:

Konu
Social Studies, 06.06.2021 19:40
Konu
Mathematics, 06.06.2021 19:40
Konu
Biology, 06.06.2021 19:50