Conditional statements in C++ programming
May 18th, 2012
No comments
Conditional staments in C++ programming:
There are four conditional statements in c++ programming language. They are if, if else, else if ladder and nested if .
If:
syntax:
if(condition)
{
true Read more [...]
C program to find factorial by using function – Argument with return type
May 18th, 2012
No comments
Write a c program to calculate factorial value by using function :
In this program we are going to use the method of argument with return type. First we declare f in long int. Then we declare function Read more [...]
JavaScript Simple if example program
May 17th, 2012
No comments
Write a JavaScript Program to perform simple if conditional statements :
In this program we declare variable d that is used to get Date by using Date() command. then we use another variable time which Read more [...]
Categories: Others if, if condition in javascript, if conditions, if statement in javascript, JavaScript
JavaScript conditional statements
May 15th, 2012
No comments
Types of conditional statements in JavaScript :
Simple If:
Syntax :
if(condition)
{
True statement block
}
Here test condtion is true True statement block executed otherwise it wont execute.
IF Read more [...]
Difference for add number and string with example program
May 12th, 2012
No comments
Here we have example coding for adding numbers and string. If we add two numbers that number will added but if we add one number and one string it will concatenate those number and string . Where these Read more [...]
Looping Statement in Java
May 6th, 2012
No comments
Looping Statement :
Looping statement used to execute particular line again and again. There are three types of Looping Statement in Java.
while
Do while
for
while Loop:
Syntax :
while(condition)
{
block Read more [...]
Logical operators in JavaScript
May 6th, 2012
No comments
Logical Operators :
AND :
And operator used to check 2 or more condition at the same time.
OR :
If any one of the condition is true in given condition or operation executes true value.
NOT:
not Read more [...]
Add two numbers using JavaScript
May 1st, 2012
No comments
How to add two integer numbers using JavaScript :
Here variables a and b holds values, and variable c holds values of addition of a+b. Then we print those addition value using document.write() statement.
Coding Read more [...]
Display variable using document.write statement in JavaScript
May 1st, 2012
No comments
We can display our text or variables using document.write statement. Inside " " used to print what we give and after the " " put comma after use variables. The below coding used to show how to use it.
Coding Read more [...]
Variables in JavaScript
May 1st, 2012
No comments
Variables in JavaScript :
Variables used to store values.
Rules for naming variables :
Variables may be small.
Variable is a case sensitive which means name and Name both are different.
First Read more [...]
