<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум компьютерной помощи &mdash; Си++. Пирмеры программ.]]></title>
	<link rel="self" href="https://itpmr.ru/extern.php?action=feed&amp;tid=724&amp;type=atom" />
	<updated>2012-11-30T08:42:14Z</updated>
	<generator>PunBB</generator>
	<id>https://itpmr.ru/viewtopic.php?id=724</id>
		<entry>
			<title type="html"><![CDATA[Re: Си++. Пирмеры программ.]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123658#p123658" />
			<content type="html"><![CDATA[<p>#include&lt;stdio.h&gt;<br />&nbsp; #include&lt;conio.h&gt;<br />&nbsp; void main ()<br />&nbsp; {<br />&nbsp; clrscr();<br />&nbsp; printf(&quot;\t\tЧисла и их квадраты\n&quot;);<br />&nbsp; int N,m;&nbsp; &nbsp; //N-число, m-его последняя цифра<br />m:printf(&quot;Введите число:\n&quot;);<br />&nbsp; scanf(&quot;%d&quot;,&amp;N);<br />&nbsp; m=N%10;<br />&nbsp; switch(m)<br />&nbsp; &nbsp;&nbsp; &nbsp;{<br />&nbsp; &nbsp;&nbsp; &nbsp;case 0:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Последняя цифра квадрата: 0\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 1:<br />&nbsp; &nbsp;&nbsp; &nbsp;case 9:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Последняя цифра квадрата: 1\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 2:<br />&nbsp; &nbsp;&nbsp; &nbsp;case 8:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Последняя цифра квадрата: 4\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 3:<br />&nbsp; &nbsp;&nbsp; &nbsp;case 7:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Последняя цифра квадрата: 9\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 4:<br />&nbsp; &nbsp;&nbsp; &nbsp;case 6:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Последняя цифра квадрата: 6\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 5:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Последняя цифра квадрата: 5\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;default:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Введено неверное число, повторите ввод\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; goto m;<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;}<br />&nbsp; &nbsp;&nbsp; &nbsp;}<br />&nbsp; getch ();<br />&nbsp; }</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2012-11-30T08:42:14Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123658#p123658</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Си++. Пирмеры программ.]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123657#p123657" />
			<content type="html"><![CDATA[<p>#include&lt;stdio.h&gt;<br />&nbsp; #include&lt;conio.h&gt;<br />&nbsp; void main ()<br />&nbsp; {<br />&nbsp; clrscr();<br />&nbsp; printf(&quot;\t\tПраздники\n&quot;);<br />&nbsp; int mes;<br />m:printf(&quot;Введите номер месяца:\n&quot;);<br />&nbsp; scanf(&quot;%d&quot;,&amp;mes);<br />&nbsp; switch(mes)<br />&nbsp; &nbsp;&nbsp; &nbsp;{<br />&nbsp; &nbsp;&nbsp; &nbsp;case 1:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Январь: Новый год, Рождество\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 2:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Февраль: День защитника отечества, День Св.Валентина\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 3:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Март: Женский день, День рождения Вали\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 4:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Апрель: День смеха, День рождения А.Заворотнюк\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 5:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Май: День рождения мамы, День победы\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 6:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Июнь: День защиты детей, лето!!!!!\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 7:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Июль: День независимости США\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 8:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Август: День рождения Юли\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 9:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Сентябрь: День знаний, День республики ПМР\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 10:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Октябрь: День учителя, День рождения папы\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 11:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Ноябрь: Мой день рождения 23 ноября!!!\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 12:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Декабрь: Новый год!!!!!!!\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;default:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Введен неверный номер месяца, повторите ввод\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; goto m;<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;}<br />&nbsp; &nbsp;&nbsp; &nbsp;}<br />&nbsp; getch ();<br />&nbsp; }</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2012-11-30T08:42:08Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123657#p123657</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Си++. Пирмеры программ.]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123656#p123656" />
			<content type="html"><![CDATA[<p>#include&lt;stdio.h&gt;<br />&nbsp; #include&lt;conio.h&gt;<br />&nbsp; void main ()<br />&nbsp; {<br />&nbsp; clrscr();<br />&nbsp; printf(&quot;\t\tЦифры и их названия\n&quot;);<br />&nbsp; int zifra;<br />m:printf(&quot;Введите цифру:\n&quot;);<br />&nbsp; scanf(&quot;%d&quot;,&amp;zifra);<br />&nbsp; switch(zifra)<br />&nbsp; &nbsp;&nbsp; &nbsp;{<br />&nbsp; &nbsp;&nbsp; &nbsp;case 0:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Zero\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 1:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;One\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 2:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Two\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 3:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Three\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 4:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Four\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 5:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Five\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 6:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Six\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 7:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Seven\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 8:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Eight\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 9:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Nine\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;default:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Введена неверная цифра, повторите ввод\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; goto m;<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;}<br />&nbsp; &nbsp;&nbsp; &nbsp;}<br />&nbsp; getch ();<br />&nbsp; }</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2012-11-30T08:42:00Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123656#p123656</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Си++. Пирмеры программ.]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123655#p123655" />
			<content type="html"><![CDATA[<p>#include&lt;stdio.h&gt;<br />&nbsp; #include&lt;conio.h&gt;<br />&nbsp; void main ()<br />&nbsp; {<br />&nbsp; clrscr();<br />&nbsp; printf(&quot;\t\tЗапчасти\n&quot;);<br />&nbsp; int nomer;<br />m:printf(&quot;Введите номер запчасти:\n&quot;);<br />&nbsp; scanf(&quot;%d&quot;,&amp;nomer);<br />&nbsp; switch(nomer)<br />&nbsp; &nbsp;&nbsp; &nbsp;{<br />&nbsp; &nbsp;&nbsp; &nbsp;case 1:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Это гайка\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 2:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Это болт\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 3:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Это шайба\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 4:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Это гвоздь\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 5:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Это шуруп\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;default:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Введен неверный номер запчасти, повторите ввод\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; goto m;<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;}<br />&nbsp; &nbsp;&nbsp; &nbsp;}<br />&nbsp; getch ();<br />&nbsp; }</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2012-11-30T08:41:52Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123655#p123655</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Си++. Пирмеры программ.]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123654#p123654" />
			<content type="html"><![CDATA[<p>#include&lt;stdio.h&gt;<br />&nbsp; #include&lt;conio.h&gt;<br />&nbsp; void main ()<br />&nbsp; {<br />&nbsp; clrscr();<br />&nbsp; printf(&quot;\t\tОценки\n&quot;);<br />&nbsp; int ozenka;<br />m:printf(&quot;Введите оценку:\n&quot;);<br />&nbsp; scanf(&quot;%d&quot;,&amp;ozenka);<br />&nbsp; switch(ozenka)<br />&nbsp; &nbsp;&nbsp; &nbsp;{<br />&nbsp; &nbsp;&nbsp; &nbsp;case 2:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Неудовлетворительно\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 3:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Удовлетворительно\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 4:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Хорошо\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;case 5:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Отлично\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; break;<br />&nbsp; &nbsp;&nbsp; &nbsp;default:<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; printf(&quot;Введена неверная оценка, повторите ввод\n&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; goto m;<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;}<br />&nbsp; &nbsp;&nbsp; &nbsp;}<br />&nbsp; getch ();<br />&nbsp; }</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2012-11-30T08:41:43Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123654#p123654</id>
		</entry>
</feed>
