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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, loveworld3798
When working with a team you should always do the following, except? question 3 options: be dependable and trustworthy be sensitive to others feelings do your fair share critique members of the group
Answers: 2
image
Computers and Technology, 22.06.2019 18:10, o10922025
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
image
Computers and Technology, 22.06.2019 22:30, jacob7542
The qwerty keyboard is the most common layout of keys on a keyboard
Answers: 3
image
Computers and Technology, 22.06.2019 22:40, nsuleban9524
When you type the pwd command, you notice that your current location on the linux filesystem is the /usr/local directory. answer the following questions, assuming that your current directory is /usr/local for each question. a. which command could you use to change to the /usr directory using an absolute pathname? b. which command could you use to change to the /usr directory using a relative pathname? c. which command could you use to change to the /usr/local/share/info directory using an absolute pathname? d. which command could you use to change to the /usr/local/share/info directory using a relative pathname? e. which command could you use to change to the /etc directory using an absolute pathname? f. which command could you use to change to the /etc directory using a relative pathname?
Answers: 3
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 in other subjects: