subject

1. Se citește n număr natural. Scrieti un algoritm care verifică dacă numărul respectiv conține cifre prime printre cifrele sale și afișează un mesaj corespunzător.
2.Se consideră n număr natural citit de la tastatură. Scrieți un algoritm care să verifice dacă
suma cifrelor lui n este număr prim.
3. Se citește n număr natural. Să se determine cifra minimă a numărului n și să se precizeze de
câte ori apare în numărul n.
4. Se citește n număr natural. Scrieti un algoritm care verifică dacă numărul n are toate cifrele
egale și afișează un mesaj corespunzător.
5.Se citește x număr natural cu cel mult 9 cifre. Să se micşoreze cu o unitate fiecare cifră
nenulă și să se afișeze numărul obținut.
Exemplu. Pentru x=26703 se obţine 15602.
6.Se consideră a și b două numere întregi citite de la tastatură. Scrieți un algoritm care să
afișeze toate numerele perfecte cuprinse în intervalul [a, b].
7. Să se afişeze numerele din intervalul [a, b] care memorează cel puţin o cifră pară. Numerele
a şi b sunt numere naturale cu cel mult 9 cifre citite de la tastatură.
8. Să se afişeze numerele din intervalul [a, b] care conţin un număr de cifre pare egal cu
numărul de cifre impare. Numerele a şi b sunt numere naturale cu cel mult 9 cifre citite de la
tastatură.
9. Se citeşte un număr natural n cu cel mult 9 cifre de la tastatură. Să se verifice dacă n este
număr puternic.
Un număr este puternic dacă are mai mulţi divizori decât orice număr mai mic decât el.
Exemplu. pentru n=12 se afişează număr puternic.
10. Fie un număr natural x cu cel mult 4 cifre. Să se insereze înainte de fiecare cifră pară
următoarea cifră.
Exemplu. pentru x=5672 se obţine 576732

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:30
Raveena is making a professional presentation for a newly launched product of her company. she wants to incorporate the following features in her presentation. a) to add serial numbers in each slide b) to add name of her company on top of each slide. c) to add the picture of her product on the second slide(the picture of her product is stored on her computer) write the commands/features of her presentation tool using which she can perform the above operations.
Answers: 2
question
Computers and Technology, 21.06.2019 21:00
If you have a lien on your vehicle, you cannot apply for a duplicate copy of your vehicle’s certificate of title. true or false
Answers: 1
question
Computers and Technology, 22.06.2019 18:10
Assume that to_the_power_of is a function that expects two int parameters and returns the value of the first parameter raised to the power of the second parameter. write a statement that calls to_the_power_of to compute the value of cube_side raised to the power of 3 and that associates this value with cube_volume.
Answers: 1
question
Computers and Technology, 23.06.2019 08:30
Based on your knowledge of a good network, describe what you think is a perfect network would be. what kind of information and resources could users share on this network. what would the network administrator do? what kind of communication would be used?
Answers: 1
You know the right answer?
1. Se citește n număr natural. Scrieti un algoritm care verifică dacă numărul respectiv conține cif...
Questions
question
Mathematics, 04.02.2020 04:47
question
Mathematics, 04.02.2020 04:47
question
Mathematics, 04.02.2020 04:47
Questions on the website: 13722367