Первая задача. Язык СИ



Всем привет. Хочу по возможности выкладывать решенные мною задачи на языке программирования СИ. Задачи для школьников. Буду пытаться их решить. 🙂 Вообще потихоньку так хочу развивать свою логику, хоть и поздно я начал, но все же попробую. 🙂

1. Задание на простейшие циклы

1) Задано натуральное число N. Составить программу вычисления суммы цифр числа.

#include<stdio.h>

#include<conio.h>

main()

{

int N, i, sum=0; /* Объявляем целочисленные переменные*/

scanf(«%d», &N); /* Вводим число с клавиатуры*/

printf(«N=%d», N); /*Выводим на монитор введенное число*/

for (i=0; i<N; i++) /* Происходит цикл, в котором переменной sum присваиваем числа, от нуля до N*/

sum+=i;

printf («\nSum=%d\n», sum); /*Выводим на монитор полученную сумму*/

getch(); /*Функция, чтобы при завершении программы результаты оставались на экране*/

return 0; /*Эта строка говорит о том, что программа завершилась корректна*/

}

Язык СИ, наверно самый популярный язык во всем мире, на базе его синтаксиса построены другие новые языки. Подробнее о Си можете почитать на Википедии.

Комментариев нет »

  1. This is nicely put! !

    generic viagra caverta pfizer viagra approval 2009
    generic viagra online
    viagra nyship 2007 — https://genericviagramsl.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 25 Июль 2019 @ 14:24

  2. You actually said it effectively!

    cost of viagra in the pi kris kardashian otc viagra
    viagra for sale uk
    cialis viagra paypal — https://genericviagrantx.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 25 Июль 2019 @ 15:12

  3. Cheers. Loads of forum posts!

    viagra enlarges penis viagra 50mg sverige
    viagra generic
    roy d mercer dog viagra — https://genericviagrarcp.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 25 Июль 2019 @ 16:01

  4. Factor certainly taken!!

    how to reverse effects of viagra the effect of viagra
    viagra for sale uk
    paypal to buy viagra — https://genericviagrarcp.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 25 Июль 2019 @ 16:48

  5. Factor certainly applied..

    viagra ambien gift will viagra make you larger
    viagra online
    viagra risks — https://genericviagrarcp.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 25 Июль 2019 @ 17:37

  6. Amazing postings. Cheers.

    viagra sales in south africa teachers and viagra and wisconsin
    viagra for sale uk
    alternative uses viagra — https://genericviagrantx.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 25 Июль 2019 @ 18:27

  7. Fine postings. Cheers.

    free viagra with order viagra model
    buy viagra online
    most effective way to use viagra — https://genericviagrantx.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 25 Июль 2019 @ 19:17

  8. Wonderful forum posts, Thank you!

    cleaning viagra viagra pounding
    generic viagra online
    what is in viagra — https://genericviagramsl.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 25 Июль 2019 @ 20:08

  9. Incredible quite a lot of useful material.

    viagra nitroglycerin purchasing viagra in malaysia
    viagra generic
    aetna viagra amount — https://genericviagrarcp.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 25 Июль 2019 @ 20:57

  10. Thanks. An abundance of postings!

    edinburgh uk viagra pages search news using viagra video
    buy viagra
    emanuelle viagra — https://genericviagrarcp.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 25 Июль 2019 @ 21:48

  11. Whoa a lot of superb advice.

    viagra over the ocunter proven competitor to viagra cialis levitra
    viagra for sale uk
    counterfiet viagra from china — https://genericviagramsl.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 25 Июль 2019 @ 22:39

  12. Regards. A good amount of content!

    viagra logo spoof arrhythmia viagra
    generic viagra 100mg
    buy online com phentermine viagra — https://genericviagrarcp.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 25 Июль 2019 @ 23:30

  13. Nicely put, With thanks!

    generic viagra without a percription funny viagra
    buy viagra
    generic keyword viagra — https://genericviagrarcp.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 00:20

  14. You actually reported this really well!

    buy viagra or levitra viagra prescription onlin
    buy generic viagra
    german viagra — https://genericviagrarcp.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 01:10

  15. Info nicely taken..

    europe viagra supplements that replaces viagra
    viagra for women
    viagra riddim mix — https://genericviagramsl.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 02:00

  16. Superb facts. Cheers.

    female viagra drink viagra interaccion ibuprofeno
    generic viagra 100mg
    when to take viagra — https://genericviagrantx.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 02:50

  17. Thanks! Awesome information.

    viagra canada deliver safe dose of viagra
    viagra online
    generic viagra and china — https://genericviagrarcp.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 03:41

  18. Nicely put. Appreciate it.

    viagra find sites computer search edinburgh best retail pharmacy viagra price
    buy viagra
    cheap testosterone viagra href foro — https://genericviagramsl.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 04:30

  19. Nicely put. Cheers.

    viagra without perscription viagra wiht women
    viagra generic
    viagra testicles inflamed — https://genericviagrantx.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 05:21

  20. Nicely put, Cheers.

    female pink viagra viagra extacy
    cheap viagra
    what if viagra does not work — https://genericviagrarcp.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 06:13

  21. You said it very well..

    viagra consumer advice chipmunks viagra song lyrics
    viagra for sale uk
    viagra canadian home office — https://genericviagrarcp.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 07:03

  22. This is nicely put! .

    viagra falls snake charmers viagra lessen side effects
    buy viagra online
    mixing viagra with cialias — https://genericviagrantx.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 07:53

  23. Regards! I value it.

    viagra dealers is viagra safe for diabetics
    viagra without a doctors prescription
    viagra and ejaculation — https://genericviagrantx.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 08:43

  24. You made the point.

    how do you buy viagra at viagra humor
    buy viagra
    is viagra relly needed doctors adventures — https://genericviagrarcp.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 09:33

  25. Truly all kinds of helpful info!

    viagra sale online a href viagra chewing gum
    viagra without a doctors prescription
    age recommend for taking viagra — https://genericviagrarcp.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 10:23

  26. Great stuff. With thanks.

    viagra interaction with blood pressure medicine viagra gay men
    viagra 100mg
    mental exerices instead of viagra — https://genericviagrantx.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 11:14

  27. Thank you! Helpful information.

    viagra and heart attack wife sold ski doo viagra
    viagra for women
    porn stars and viagra — https://genericviagrarcp.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 12:05

  28. Seriously plenty of very good tips.

    sildenafil citrate viagra discount priced viagra
    viagra pills
    take viagra soft tabs — https://genericviagramsl.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 12:56

  29. Good posts. Cheers!

    maid training story viagra viagra in the usa
    generic viagra
    viagra online without prescription $1.00 — https://genericviagramsl.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 13:48

  30. Reliable material. Thanks.

    online viagra uk viagra from mexico
    viagra without a doctors prescription
    claim status lawsuit for viagra — https://genericviagrarcp.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 14:41

  31. Thanks, A lot of postings!

    the pump vs viagra generic viagra vendors online
    buy viagra online
    opposite viagra — https://genericviagrantx.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 15:33

  32. Many thanks. I appreciate it!

    who manufacturers generic viagra taking viagra with tramadol
    viagra pills
    india generic viagra buy one — https://genericviagrantx.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 16:25

  33. You suggested that very well!

    viagra and jumex combination chgeap viagra
    generic viagra 100mg
    viagra sale — https://genericviagramsl.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 17:17

  34. Very well voiced really. !

    charles linskaill search viagra find arutha 210 area code viagra
    generic viagra 100mg
    viagra sweden — https://genericviagramsl.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 18:10

  35. Cheers! I enjoy it!

    viagra in sanskrit who needs viagra
    buy viagra
    viagra discount viagra prescription drugs — https://genericviagrantx.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 19:03

  36. You expressed it very well!

    real viagra online real pfizer viagra and nitroglycerin
    viagra generic
    teen boys taking viagra — https://genericviagrantx.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 19:56

  37. With thanks, I appreciate this!

    viagra levitra or cialis viagra jet lag
    generic viagra online
    viagra compared to genaric viagra — https://genericviagramsl.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 20:47

  38. Nicely put, Cheers.

    viagra napewno mi zagra buying viagra at tesco
    viagra without a doctor prescription
    uk suppliers generic viagra — https://genericviagrantx.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 21:40

  39. Nicely put, Cheers!

    alchole and viagra generic cialis pills and generic viagra
    viagra pills
    how often can someone take viagra — https://genericviagrantx.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 22:31

  40. Appreciate it! Lots of postings.

    viagra mexico 5 sildenafil viagra
    generic viagra 100mg
    volkswagon viagra commercial — https://genericviagrantx.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 26 Июль 2019 @ 23:24

  41. You mentioned that effectively.

    lotensin viagra orignal viagra online uk
    viagra online
    coffin viagra — https://genericviagrarcp.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 27 Июль 2019 @ 00:17

  42. With thanks, I appreciate it!

    90 for 135 viagra recommended viagra dosing
    viagra for sale uk
    how fast does viagra work — https://genericviagrantx.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 27 Июль 2019 @ 01:11

  43. Appreciate it. Lots of content!

    viagra alternative herbal supplement discount online viagra
    buy generic viagra
    nonprescription viagra australia — https://genericviagramsl.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 27 Июль 2019 @ 02:04

  44. Whoa a lot of useful tips.

    cyprus viagra viagra over the ocunter
    buy viagra online
    does viagra make your penis larger — https://genericviagramsl.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 27 Июль 2019 @ 02:57

  45. You expressed it terrifically!

    x and viagra hours ago edinburgh viagra articleid good
    viagra online
    viagra prescriptions charlotte nc — https://genericviagramsl.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 27 Июль 2019 @ 04:43

  46. You actually mentioned it exceptionally well!

    get a viagra perscription no prescription viagra generic discount
    generic viagra 100mg
    viagra 100mg — https://genericviagrarcp.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 27 Июль 2019 @ 05:37

  47. Well expressed really. .

    can viagra pills be split similar drugs to viagra
    viagra 100mg
    generic viagra scam — https://genericviagramsl.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 27 Июль 2019 @ 06:30

  48. Kudos, Ample posts!

    viagra online overnight delivery viagra mp3
    viagra online
    viagra manufac — https://genericviagramsl.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 27 Июль 2019 @ 07:22

  49. You expressed this really well.

    boots viagra knox news viagra substitute
    viagra generic
    viagra online diagnosis — https://genericviagrarcp.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 27 Июль 2019 @ 08:14

  50. You actually stated this very well.

    viagra patient info generic viagra in san jose
    viagra 100mg
    combined cialis viagra — https://genericviagrantx.com

    DavidSteda
    Terenceprind
    VictoridoTa

    Comment by AndrewMit — 27 Июль 2019 @ 09:05

RSS-лента комментариев к этой записи. TrackBack URL

Оставить комментарий