My First C++ Program

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 numbers, which are decimal numbers that can have fractional parts. Floats occupy 4 bytes of memory and have a range and precision that is typically smaller than that of the "double" data type.
cout: cout in C++ is used to display output to the screen. 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
cout<<"Enter Number ";
**cin:**The cin object in C++ is an object of class iostream. 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(>>) is used along with the object cin for reading inputs. .A scene is an opportunity to provide user input
endl: In C++, endl is an output manipulator used with the insertion operator (<<). It's part of the standard library and performs two main functions: it inserts a new line, and it flushes the output buffer.An endl is an instruction to enter another line after the end of one line
return : Terminates the execution of a function and returns control to the calling function (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
#include <iostream>
using namespace std;
int main(){
return 0;
}
{ } , << , >> , ; , " " , ( )
This are C++ structure
Examples
1)Calculate the Difference of Two Numbers


Find Difference between two numbers. Accept Numbers from user and find difference between two numbers.
2) Calculate The Product of Two Numbers


Find Product Two Numbers.Declare Variables ,Accept Numbers from user and find Product of Two Numbers.
3)Calculate Area of Cricle


Define PI Value,Declare Variables,Accept Radius from user and Find Area of Cricle.
4)Swap Two Numbers


Swap Two Numbers,Declare Variables,Accept Two Numbers From User and Swap Numbers Use temp Variable.
Console
Console in C++ is the window at which the output of your program appears. 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.




