Search

CompuCoder

Coding Made Easy

Get Familiar With HTML Tags

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.

Continue reading “Get Familiar With HTML Tags”

Advertisements

How To Swap (Interchange) Two Numbers

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”

Starting With HTML

The technology has being going in a tremendous up graph.

The web technology in the 21st era is an unavoidable factor.

Here from today we will learn how to create websites by ourselves.

We see a lot of websites always, have you ever thought how it is made? :/

Do you think it as a tough job?

Never, web designing is easy if the base knowledge in HTML is strong. So we will learn HTML. HTML stands for Hyper Text Markup Language.

Continue reading “Starting With HTML”

How to Use Files in Python

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. file1 Continue reading “How to Use Files in Python”

How to Define a Simple ‘for’ Loop

Here we are going to discuss, how to define a simple ‘for’ loop.

forloop1Look at the code snippet: Continue reading “How to Define a Simple ‘for’ Loop”

How To Define a Simple Function Which Passes Parameters

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.

funcal 2

Look at the code snippet:

def addd(a,b):
 c=a+b
 return(c)

Here we have defined a function ‘addd’.

Continue reading “How To Define a Simple Function Which Passes Parameters”

How to Define a Simple Function Without Passing Parameters

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”

A simple program to Add, Subtract, Multiply and Divide

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”

A Simple Calculator

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”

Create a free website or blog at WordPress.com.

Up ↑