Lets look into a program to create a file,
write some strings into it and also to read the string stored in it and to print it. Continue reading “How to Use Files in Python”
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”