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



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

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. Nicely put. Thanks a lot.

    legal viagra health south cover viagra
    buy generic viagra
    world news edinburgh site viagra charles — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 25 Июль 2019 @ 13:42

  2. Thanks. Valuable information!

    viagra use and instructions viagra by mail approval online
    viagra 100mg
    viagra generica — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 25 Июль 2019 @ 13:52

  3. Nicely put. Cheers!

    viagra lawsuit settlement viagra effects on healthy males
    viagra online
    viagra oral gel — https://genericviagrarcp.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 25 Июль 2019 @ 14:42

  4. Seriously many of beneficial data!

    cilias taken with viagra extenze works like viagra
    viagra without a doctor prescription
    viagra diabetes — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 25 Июль 2019 @ 15:30

  5. Truly a good deal of fantastic advice!

    viagra strippers oysters being spiked with viagra
    buy viagra
    patient responses to viagra — https://genericviagrantx.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 25 Июль 2019 @ 16:19

  6. You actually stated that superbly!

    viagra strips review medical uses for viagra
    generic viagra 100mg
    joe nemechek viagra — https://genericviagrantx.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 25 Июль 2019 @ 17:07

  7. Many thanks, Good information!

    women taking viagra female viagra next day delivery
    generic viagra online
    viagra doses prices com net org — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 25 Июль 2019 @ 17:56

  8. You revealed it exceptionally well.

    generic viagra and china viagra chep
    viagra for sale uk
    viagra no prescription online india — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 25 Июль 2019 @ 18:47

  9. Seriously loads of awesome facts!

    buy viagra costa rica is taurine like viagra
    viagra online
    viagra partial dose — https://genericviagrantx.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 25 Июль 2019 @ 19:37

  10. Awesome content. With thanks.

    does a cold effect viagra viagra 100mg 100 tabs $100
    generic viagra
    diovan viagra — https://genericviagrantx.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 25 Июль 2019 @ 20:27

  11. Very well voiced certainly. .

    viagra search edinburgh ago hours norvasc and viagra
    viagra 100mg
    cost of viagra vs cialis — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 25 Июль 2019 @ 21:18

  12. Excellent tips. Thank you!

    lowest price viagra america over the counter viagra substitute
    generic viagra 100mg
    viagra canadian prescriptions — https://genericviagrantx.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 25 Июль 2019 @ 22:09

  13. Many thanks. I enjoy it!

    the viagra song storing viagra
    viagra generic
    jokes about viagra — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 25 Июль 2019 @ 23:00

  14. With thanks, Lots of posts!

    generic viagra vls pharmacy viagra reports
    viagra without a doctors prescription
    sildenafil citrate generic viagra uprima — https://genericviagrantx.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 25 Июль 2019 @ 23:50

  15. Truly a lot of wonderful knowledge.

    anal use of viagra cuddle chemical viagra post boosts
    buy viagra
    viagra porn titles — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 00:41

  16. Useful data. Regards!

    free viagra pills best source for viagra
    viagra online
    the make up viagra — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 01:30

  17. Whoa plenty of awesome facts!

    liquid viagra porn industry medicaid cover viagra
    generic viagra online
    viagra caddis fly pattern — https://genericviagrantx.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 02:22

  18. Nicely voiced certainly. .

    viagra neonate pulmonary how does viagra cause blindness
    viagra online
    viagra heart attacks — https://genericviagrantx.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 03:12

  19. Very good material. Appreciate it!

    viagra nasal spray viagra constipation
    viagra for sale uk
    discount viagra online — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 04:03

  20. Amazing tips. Thanks a lot.

    canada online pharmacy viagra oysters viagra
    buy viagra online
    viagra 3000mg — https://genericviagrarcp.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 04:53

  21. You actually expressed this perfectly!

    viagra belgie viagra and hypertension
    viagra online
    generic levitra celias viagra — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 05:44

  22. You stated this perfectly.

    viva viagra song blue pill not viagra
    viagra generic
    what does viagra cost in canada — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 06:35

  23. Many thanks, I enjoy this!

    blood pressure viagra viagra replacements
    buy viagra
    viagra side effect stories — https://genericviagrarcp.com

    Geraldawant
    Dwaynevet
    KevinBen

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

  24. Thank you! Terrific information.

    viagra generic price use of viagra after rr prostatectomy
    viagra for women
    taking viagra and alcohol — https://genericviagrantx.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 08:16

  25. You actually explained it wonderfully.

    pornactors viagra is viagra a prescription drug
    viagra 100mg
    grneric viagra — https://genericviagrantx.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 09:05

  26. Nicely put. Appreciate it!

    viagra stock ticker viagra dose size
    viagra online
    purple viagra noni — https://genericviagrarcp.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 09:56

  27. Incredible loads of amazing knowledge.

    naturopathic viagra viagra pro
    viagra for women
    edinburgh uk viagra search linskaill charles — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 10:46

  28. Seriously loads of excellent info!

    cialis soft drug generic levitra propecia store viagra rapid acting viagra
    viagra generic
    buy viagra in uk — https://genericviagrantx.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 11:37

  29. You mentioned it effectively!

    generic viagra substitute viagra sex porn
    generic viagra online
    viagra specs — https://genericviagrantx.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 12:28

  30. Really plenty of amazing facts.

    cialis cialis genuinerx net viagra emphysema primary pulmonary hypertension viagra
    buy viagra
    viagra 2 — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 13:20

  31. Lovely facts, With thanks.

    how to make viagra work longer buy viagra onli ne
    viagra without a doctors prescription
    snorting viagra health — https://genericviagrantx.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 14:12

  32. Terrific write ups. Thanks a lot!

    reviews for viagra cialis and levitra sub lingual viagra response
    viagra pills
    can viagra hurt — https://genericviagrarcp.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 15:05

  33. You said it adequately..

    viagra dosing instructions viagra exstacy
    cheap viagra
    generic viagra cheapest uk — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 15:57

  34. You said it perfectly.

    levitra viagra online viagra rx pharmacy
    buy viagra
    prescription cheapest viagra — https://genericviagrarcp.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 16:49

  35. Good tips. Regards.

    viagra super force buy viagra without prescription in milwaukee
    viagra without a doctors prescription
    special offers dose low viagra cialis — https://genericviagrantx.com

    Geraldawant
    Dwaynevet
    KevinBen

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

  36. You said it nicely..

    tijuana viagra uk suppliers of viagra
    viagra pills
    class action against pfizer for viagra — https://genericviagrantx.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 18:34

  37. You said this superbly!

    viagra cartoons viagra pro pharmacy complaints
    generic viagra 100mg
    viagra user pictures — https://genericviagrarcp.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 19:28

  38. Great write ups. Kudos!

    viagra cialas comparison online viagra soft
    viagra 100mg
    over the counter viagra substitute — https://genericviagrarcp.com

    Geraldawant
    Dwaynevet
    KevinBen

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

  39. Many thanks! A lot of advice.

    india generic viagra buy one natural form of viagra
    viagra without a doctor prescription
    does passport cover viagra — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 21:12

  40. Thanks a lot! A good amount of facts!

    picture of viagra pill lyrics abracadabra i’m up like viagra
    viagra pills
    coupons viagra — https://genericviagrantx.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 22:04

  41. Cheers! I like it!

    medical reaserch on viagra viagra dosages
    buy viagra online
    viagra fed ex — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 22:56

  42. You actually reported it adequately.

    instant cheapest viagra message board viagra
    viagra generic
    viagra stimulus required — https://genericviagrarcp.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 26 Июль 2019 @ 23:50

  43. Lovely info. Cheers.

    private uk viagra prescription over the counter viagra in holland
    generic viagra 100mg
    discount sildenafil generic viagra — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 27 Июль 2019 @ 00:43

  44. Amazing tons of superb knowledge.

    buying viagra in canada take viagra cialis
    viagra pills
    edinburgh uk viagra find search pages — https://genericviagrantx.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 27 Июль 2019 @ 01:37

  45. You actually mentioned it really well.

    homopathic viagra equivalence dosage viagra vs cialis
    viagra 100mg
    viagra contraindicated high blood pressure — https://genericviagrantx.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 27 Июль 2019 @ 02:30

  46. Thank you. Fantastic information!

    age 40 use viagra government viagra tests results
    generic viagra 100mg
    effects from side viagra — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 27 Июль 2019 @ 03:24

  47. Thanks! Numerous stuff.

    viagra risk generic viagra href cialis page
    viagra pills
    buy generic viagra in canada — https://genericviagrantx.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 27 Июль 2019 @ 04:17

  48. This is nicely said! !

    mild viagra dose viagra post haste
    viagra without a doctor prescription
    will viagra go generic soon — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 27 Июль 2019 @ 05:11

  49. Cheers, Ample write ups!

    cheap india generic viagra lawsuits against viagra
    generic viagra 100mg
    drug interactions with viagra — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 27 Июль 2019 @ 06:04

  50. Amazing info. Thank you.

    viagra on medicaid discount viagra levitra
    generic viagra 100mg
    viagra voucher — https://genericviagramsl.com

    Geraldawant
    Dwaynevet
    KevinBen

    Comment by Larrymer — 27 Июль 2019 @ 06:57

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

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