<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Untitled Publication]]></title><description><![CDATA[Untitled Publication]]></description><link>https://sinan10.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Thu, 17 Sep 2026 21:19:57 GMT</lastBuildDate><atom:link href="https://sinan10.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[My First C++ Program]]></title><description><![CDATA[C++ Program is a Basic programing language.
The first program is

C++ Syntax
int : Int is integer(whole numbers) is using in numbers. without decimals,
Example:12,-23.......
**float:**n C++, the "float" data type is used to store floating-point numbe...]]></description><link>https://sinan10.hashnode.dev/my-first-c-program</link><guid isPermaLink="true">https://sinan10.hashnode.dev/my-first-c-program</guid><category><![CDATA[C++]]></category><dc:creator><![CDATA[Muhammed sinan ep]]></dc:creator><pubDate>Tue, 02 Jul 2024 10:17:08 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/o4SzxPgMwV8/upload/4736c77cc67e4950b2debab0a580b739.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>C++ Program is a Basic programing language.</p>
<p><strong>The first program is</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1719742146026/11b9d216-eadb-4080-935f-6ba55f822a05.png?auto=compress,format&amp;format=webp" alt /></p>
<h3 id="heading-c-syntax">C++ Syntax</h3>
<p><strong>int</strong> : Int is integer(whole numbers) is using in numbers. <strong>without decimals</strong>,</p>
<p>Example:12,-23.......</p>
<p><strong>**float:**</strong>n C++, the "float" data type is <strong>used to store floating-point numbers, which are decimal numbers that can have fractional parts</strong>. Floats occupy 4 bytes of memory and have a range and precision that is typically smaller than that of the "double" data type.</p>
<p><strong>cout</strong>: cout in C++ is <strong>used to display output to the screen</strong>. The 'c' in cout stands for character, and 'out' stands for output. Thus cout refers to character output. We use the insertion operator along with cout to output formatted data. cout in C++ is defined in the iostream header file. What we want to get as output is what is included in the output</p>
<p><strong>COPY</strong></p>
<pre><code class="lang-plaintext">cout&lt;&lt;"Enter Number ";
</code></pre>
<p><strong>**cin**:</strong>The cin object in C++ is <strong>an object of class iostream</strong>. It is used to accept the input from the standard input device i.e. keyboard. It is associated with the standard C input stream stdin. The extraction operator(&gt;&gt;) is used along with the object cin for reading inputs. .A scene is an opportunity to provide user input</p>
<p><strong>endl</strong>: In C++, endl is <strong>an output manipulator used with the insertion operator (&lt;&lt;)</strong>. It's part of the standard library and performs two main functions: it inserts a new line, and it flushes the output <a target="_blank" href="http://buffer.an/"><strong>buffer. An</strong></a> endl is an instruction to enter another line after the end of one line</p>
<p><strong>return</strong> : <strong>Terminates the execution of a function and returns control to the calling function</strong> (or to the operating system if you transfer control from the main function). Execution resumes in the calling function at the point immediately following the call. Return intends that a program has ended</p>
<pre><code class="lang-plaintext">#include &lt;iostream&gt;
using namespace std;

int main(){

return 0;
}
{ } , &lt;&lt; , &gt;&gt; , ; , " " , ( )
</code></pre>
<p>This are C++ structure</p>
<h3 id="heading-examples">Examples</h3>
<p><strong>1)Calculate the Difference of Two Numbers</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1719764504760/cdc7bea6-42de-4a67-a526-43f8043c6b67.png?auto=compress,format&amp;format=webp" alt /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1719800768062/98620b09-e716-48a4-bbd1-2409f88bb56f.png?auto=compress,format&amp;format=webp" alt /></p>
<p>Find Difference between two numbers. Accept Numbers from user and find difference between two numbers.</p>
<p><strong>2) Calculate The Product of Two Numbers</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1719765118777/65339bbd-502c-4540-8950-e9e787f020fa.png?auto=compress,format&amp;format=webp" alt /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1719801095805/abeb1942-d093-4624-80bc-5fe94b051c26.png?auto=compress,format&amp;format=webp" alt /></p>
<p>Find Product Two Numbers.Declare Variables ,Accept Numbers from user and find Product of Two Numbers.</p>
<p><strong>3)Calculate Area of Cricle</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1719765491832/c8022600-996a-4a62-a75e-57e1e39e8994.png?auto=compress,format&amp;format=webp" alt /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1719800817585/0b969fbb-4649-4a3a-b8c4-7800f492f7ba.png?auto=compress,format&amp;format=webp" alt /></p>
<p>Define PI Value, Declare Variables, Accept Radius from user and Find Area of Circle.</p>
<p><strong>4)Swap Two Numbers</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1719765796542/b62e85f0-1e76-4251-9107-4260c2f73bd6.png?auto=compress,format&amp;format=webp" alt /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1719800958107/64173712-f618-4300-83d4-cb50712dce93.png?auto=compress,format&amp;format=webp" alt /></p>
<p>Swap Two Numbers, Declare Variables, Accept Two Numbers From User and Swap Numbers Use temp Variable.</p>
<h3 id="heading-console">Console</h3>
<p>Console in C++ is <strong>the window at which the output of your program appears</strong>. Any data sent to the standard output is displayed on the console. If the console isn't cleared while the program is executing, the next time the program is called it would output in a prefilled console screen.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1719768812993/13e378d5-3f91-4474-b2b8-d554da61a86e.png?auto=compress,format&amp;format=webp" alt /></p>
]]></content:encoded></item></channel></rss>