We just started our journey in learning the basics of HTML.
Starting With HTML gave you an idea what an HTML is and what are the benefits mastering it.
This is a simple program to Swap 2 Numbers, which are accepted into the variables ‘a’ and ‘b ’.
First of all, we ask the user to enter the first number and the second number.
Then we accepted integer values for the variables ‘a’ and ‘b’.
Click here to know more about ‘how to enter values’. Continue reading “How To Swap (Interchange) Two Numbers”
Here we are going to discuss, how to define a simple ‘for’ loop.
Look at the code snippet: Continue reading “How to Define a Simple ‘for’ Loop”
Here we a going to define a function which carries some parameters.
Here as in the previous program, we define functions.
But here some variables are passed as parameters.
Look at the code snippet:
def addd(a,b): c=a+b return(c)
Here we have defined a function ‘addd’.
So now we have learned to make a simple calculator.
But there we have not used function calls.
if you have missed it read it.
By using functions we can make that program much simpler than the one we had once written. Continue reading “How to Define a Simple Function Without Passing Parameters”
We have learned to print ‘hello world’ in the previous program.
If you haven’t , Please go here.
Now we are going to look into a simple program to
add, subtract, multiply and divide two numbers,something like a simple calculator.
Now lets look into our program. Continue reading “A simple program to Add, Subtract, Multiply and Divide”
Today we are going to show you how to make a simple calculator using c++ . We would discuss complex calculator in the next edition.
This calculator has been made using one of the basic and most used c++ syntax “the switch statement”. Switch statement in layman terms is a syntax which replaces many conditional statements of “if” into one single statement. Continue reading “A Simple Calculator”