составить программу на паскале
Дано натуральное число,найти сумму цифр этого числа!
Предмет:
ИнформатикаАвтор:
philiponw4Program Program1;vari,sum,n,code:integer;s:string;beginwrite('Введите натуральноее число: ');readln(s);
sum:=0;for i := 1 to Length(s) dobeginVal(s[i], n, code);sum:=sum + n;end;writeln('Сумма цифр: ', sum)end.
Автор:
lisafoleyДобавить свой ответ
Вставить в текст слова: saw,some,on,up,stopped,get,there,she,into,which,to,who,gave,it,came,decided,from,go,a,about,showed,told,very,lived,went.
A young lady(1)the country came(2)London to visit her friends.One morning(3)went out to buy(4)presents for her friends.She got(5)a tram and there she(6)a well-dressed young man(7)had a very expensive ring(8)his finger.When the tram(9)the young man came(10)to her and helped her to(11)out.She thanked him and(12)to a shop to buy sone presents for her friends.In the first shop(13)she entered she saw(14)chain which(15)to buy.But when she wanted to pay for(16)she didn`t find her purse in pocket.Instead of the purse she found the young man`s ring.She(17)it to the shopman and he(18)her that it cjst about 500 dollars.as(19)were only 100 dollars in her purse the young man had made a(20)bad excange.
Предмет:
Английский языкАвтор:
pooleОтветов:
Смотреть
причины и последствия массовых репрессий в 20-30 х годов в ссср.
Приведите подобные члены:
а)13а+28а-14а;
б)27X^2-11X^2-35X^2
в)1/2u+1/3u+1/6u
г)1/12v^3+2/3v^3-5/6v^3
Предмет:
МатематикаАвтор:
landon7f2fОтветов:
Смотреть
Предмет:
МатематикаАвтор:
sailorОтветов:
Смотреть