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



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

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. Many thanks. Lots of knowledge.

    viagra refill viagra abuse
    cheap viagra
    viagra falls off broadway play — https://genericviagrarcp.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 25 Июль 2019 @ 14:17

  2. Thank you, Excellent information.

    viagra advice what helps viagra work best
    buy viagra online
    viagra cialis levitra ed — https://genericviagrantx.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 25 Июль 2019 @ 15:06

  3. Cheers, Ample postings!

    viagra lawsuits in 2010 viagra pages edinburgh boring search girl
    viagra without a doctor prescription
    where to purchase viagra cialis levitra — https://genericviagrantx.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 25 Июль 2019 @ 15:54

  4. Many thanks! Fantastic information.

    cocaine with viagra does viagra increase erection period
    viagra 100mg
    viagra result photos — https://genericviagrarcp.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 25 Июль 2019 @ 16:43

  5. Thanks a lot. A good amount of write ups!

    buy viagra porno at maygreat org viagra stroke
    buy viagra
    presidents in viagra commercial — https://genericviagrarcp.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 25 Июль 2019 @ 17:31

  6. Thank you. Awesome stuff!

    viagra websites viagra online shop online approval
    generic viagra
    all natural alternative to viagra — https://genericviagrarcp.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 25 Июль 2019 @ 18:22

  7. You actually revealed that perfectly.

    viagra and plavix medicare b benefit viagra
    buy viagra
    buy generic viagra si br — https://genericviagrantx.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 25 Июль 2019 @ 19:12

  8. Valuable posts. Thanks a lot!

    dangers of fake viagra powergra buy viagra with pay pal
    viagra for sale uk
    cialis viagra cough sinus — https://genericviagramsl.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 25 Июль 2019 @ 20:02

  9. Seriously plenty of useful data.

    release date generic viagra viagra retail discount
    viagra online
    viagra or sildenafil — https://genericviagramsl.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 25 Июль 2019 @ 20:53

  10. Superb facts. Many thanks!

    non-prescription viagra viagra or levitra
    generic viagra 100mg
    buy online viagra in the uk — https://genericviagramsl.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 25 Июль 2019 @ 21:43

  11. Many thanks! I enjoy it.

    wikipedia viagra free sample herbal viagra
    generic viagra 100mg
    discount viagra 10 pack generic — https://genericviagramsl.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 25 Июль 2019 @ 22:35

  12. Effectively voiced really! .

    knox news viagra substitute use viagra who
    viagra for sale uk
    viagra wiki online viagra wiki url — https://genericviagramsl.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 25 Июль 2019 @ 23:26

  13. You suggested that adequately!

    viagra pharma company get some viagra
    viagra for sale uk
    does old viagra still woek — https://genericviagrarcp.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 00:16

  14. Nicely put. Thank you!

    price range for the drug viagra viagra and vision loss
    viagra without a doctors prescription
    does viagra work for everybody — https://genericviagramsl.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 01:06

  15. Fine facts. Kudos!

    viagra song levitra vardenafil hci viagra sildenafil citrate
    generic viagra 100mg
    aurochem viagra — https://genericviagramsl.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 01:57

  16. Thanks a lot, I like it.

    viagra nogales how does viagra work for women
    generic viagra
    seniors living with aids since viagra — https://genericviagrantx.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 02:48

  17. Regards. Ample data!

    viagra online federal express overnight shipping viagra real name
    viagra generic
    the side affect of viagra — https://genericviagramsl.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 03:38

  18. Fine facts. Many thanks!

    government viagra tests results viagra 4
    generic viagra
    viagra 90 pills x 100 mg — https://genericviagrantx.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 04:28

  19. Nicely put, With thanks!

    awesome viagra bull viagra aspirin
    generic viagra online
    viagra and painkillers — https://genericviagrantx.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 05:18

  20. Good postings. Thanks a lot!

    otc viagra substitutes subaction showcomments viagra optional posted
    generic viagra 100mg
    viagra and sports performance — https://genericviagrarcp.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 06:10

  21. Whoa a good deal of valuable facts!

    viagra beer viagra norvasc and
    buy viagra online
    find search viagra ago edinburgh hours — https://genericviagrarcp.com

    Keithbycle
    RichardHal
    Ernestomow

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

  22. Very well spoken really. !

    sault ste marie viagra woman tries female viagra
    buy viagra online
    viagra medicare uk — https://genericviagrarcp.com

    Keithbycle
    RichardHal
    Ernestomow

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

  23. Amazing plenty of useful data!

    cheap viagra from pfizer ciallis or viagra
    buy viagra online
    viagra patent litigation — https://genericviagrarcp.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 08:40

  24. You mentioned this very well.

    viagra us patent can viagra be taken with ranitidine
    viagra pills
    what cars are in viagra commercials — https://genericviagrarcp.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 09:30

  25. You revealed this well!

    viagra ed meds 30 off viagra without a prescription ontario canada
    viagra for women
    imdur viagra interactions — https://genericviagrarcp.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 10:21

  26. Excellent material. With thanks.

    viagra in my bones viagra and eating a meal
    viagra pills
    viagra ed — https://genericviagrantx.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 11:12

  27. Kudos! Lots of info!

    viagra cost walgreens persuasive essay sample viagra
    viagra without a doctor prescription
    viagra rapid tabs — https://genericviagrantx.com

    Keithbycle
    RichardHal
    Ernestomow

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

  28. Very well spoken certainly! !

    keywords viagra mp3 blog viagra use
    generic viagra 100mg
    viagra erections — https://genericviagramsl.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 12:54

  29. Great write ups. Many thanks.

    difference cialis and viagra viagra special delivery uk
    viagra without a doctor prescription
    generic viagra companies — https://genericviagrantx.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 13:46

  30. Thanks a lot! Loads of information!

    viagra works buying viagra in mexico
    viagra generic
    is watermelon the new viagra — https://genericviagrarcp.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 14:38

  31. Position very well used..

    message board for viagra viagra 25 mg
    generic viagra 100mg
    viagra and vision loss — https://genericviagrarcp.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 15:31

  32. Nicely put, Thanks a lot.

    michael smidt old viagra creep viagra and glaucoma
    generic viagra
    generic viagra 25mg — https://genericviagrantx.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 16:22

  33. Incredible lots of terrific facts.

    low minimum order viagra online attack heart viagra
    cheap viagra
    viagra substitute royal caribbean cruises — https://genericviagrantx.com

    Keithbycle
    RichardHal
    Ernestomow

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

  34. Fantastic postings. Cheers!

    jackie corbin and viagra coleman 2000 viagra elite trailer
    viagra generic
    buy viagra over the counter us — https://genericviagrarcp.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 18:08

  35. You actually mentioned it effectively.

    viagra no prescription chea viagra and liver
    viagra for sale uk
    funny viagra jokes — https://genericviagramsl.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 19:01

  36. Factor certainly taken..

    compare viagra and what happens when teens take viagra
    buy viagra online
    virus took over email aol viagra — https://genericviagrantx.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 19:53

  37. Thank you. Fantastic information!

    viagra precription the little red pill like viagra
    cheap viagra
    woman tries female viagra — https://genericviagrarcp.com

    Keithbycle
    RichardHal
    Ernestomow

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

  38. Tips certainly regarded!.

    watermellon an viagra viagras by vbulletin intitle view profile
    generic viagra 100mg
    viagra sex porn — https://genericviagrantx.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 21:38

  39. Truly a lot of superb advice!

    moo moo edinburgh viagra tid news buy cheapest viagra online
    viagra for women
    viagra and drug interactions — https://genericviagrarcp.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 22:30

  40. Regards, Plenty of stuff!

    chemical viagra viagra generic comments
    buy viagra online
    medical prescription viagra — https://genericviagrantx.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 26 Июль 2019 @ 23:22

  41. You have made your point!

    weight control and viagra buy viagra canada review
    viagra 100mg
    testimonies of viagra use — https://genericviagramsl.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 27 Июль 2019 @ 00:16

  42. Thanks a lot! Excellent information!

    my dog ate a viagra bisoprolol fumerate and viagra
    viagra online
    top viagra online sales — https://genericviagrarcp.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 27 Июль 2019 @ 01:10

  43. Very good information. Kudos.

    viagra verwendung viagra levetra
    generic viagra 100mg
    viagra 2011 cost canada — https://genericviagramsl.com

    Keithbycle
    RichardHal
    Ernestomow

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

  44. With thanks. A good amount of forum posts!

    amino acid viagra buy viagra 1
    viagra for sale uk
    viagra single dose — https://genericviagramsl.com

    Keithbycle
    RichardHal
    Ernestomow

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

  45. Truly a lot of helpful material!

    viagra cheap no prescrip cheap viagra sales in england
    generic viagra 100mg
    how much viagra to take — https://genericviagrarcp.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 27 Июль 2019 @ 03:51

  46. Very good tips. Thank you!

    generic viagra discount what works better viagra or cialis
    viagra online
    viagra citalopram — https://genericviagrarcp.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 27 Июль 2019 @ 04:44

  47. Kudos! Loads of stuff!

    do women like viagra mobic viagra
    viagra without a doctor prescription
    viagra orgasm — https://genericviagrantx.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 27 Июль 2019 @ 05:38

  48. Thank you, A lot of data.

    is there a daily viagra cheap us viagra
    buy viagra online
    alternatives viagra — https://genericviagramsl.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 27 Июль 2019 @ 06:31

  49. You said it adequately..

    take viagra with food does viagra make your penis bigger
    cheap viagra
    renova viagra denavir zyban — https://genericviagrarcp.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 27 Июль 2019 @ 07:23

  50. You revealed that well.

    order phentermine onlineorder viagra viagra by perscription
    generic viagra 100mg
    christine rudakewycz viagra — https://genericviagrantx.com

    Keithbycle
    RichardHal
    Ernestomow

    Comment by Ernestomow — 27 Июль 2019 @ 08:15

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

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