Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 992 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 992 Bytes

Basics-of-C-

##AIM: To learn the basics of C++.

##THEORY:

The basics of C++ consists of general syntaxes which are used in almost all the C++ codes.For example:

1.for displaying the inputs and outputs [cin/cout]
2. new line[\n;endl;]
3. Comments, etc.

This respository contains two programs which displays basic use of C++; print "hello world" and a calculator program.The calculator program has switch conditional statement which helps to choose between given cases.

##ALGORITHM:

To print hello world
step1:create a main function
step2:type "hello world" in the output syntax
step3:run the code to see the desired output.

Output of hello world and calculator programs:

Screenshot 2023-10-01 110106 Screenshot 2023-10-01 110219