## Factors and Factoring Expressions

In the previous lesson, you learned about distributive law and how to use them to rewrite expressions. The distribution law applied on factored expression and it changes into distributed form. The factored form of expression is showing the function as a product of two simpler expressions which when multiplied will be in expanded form. In … Read more

## Rewriting Expressions using Distributive Law

In the previous article, you learned about rewriting expressions using commutative law, associative law and sometimes with identity law.The expressions are sometimes presented in the form of product of simple expressions, and we can expand it my multiplying those expressions. One such method is distribution of multiplication over addition or subtraction. In this article, I … Read more

## Rewriting Expressions using Math Laws

Previously, you learned about converting words to equations and expressions. You now know the difference between expression and equation.In this lesson, you will learn about rewriting expressions, using mathematical fundamental laws. If two expressions are written differently, are they equal ? That is the kind of question we are trying to answer here. I assume … Read more

## C Program for Sum of First N Natural Numbers

The program adds first N natural numbers (starts from 1) and prints the sum in the console. We wrote this program using Dev C++ version 4.9.9.2 on a Windows 7 64-bit system.  You may try other standard C compilers to run the program with modifications. Learn following c programming concepts before you attempt this example … Read more

## JavaScript Arithmetic Operators

The arthemetic operators are those that use two or more operands in the form of constants or variables and return single value as results. The value of arithmetic expressions are stored in a variable or used in other expressions. There are 6 arithmetic operators in JavaScript language. These are: Addition Subtraction Multiplication Division Remainder Exponential … Read more

## JavaScript-Exercise 09- For Loop

Previous Next The “For Loop” is the most popular loop in many popular programming languages. Like any other loop, it’s task is to repeat a given statement inside the loop until the given condition in the loop becomes false. It’s easier to understand with an example. In the following example web page we have a … Read more

## Basic JavaScript – Exercise 08: Alerts, Confirm and Prompt

Previous Next JavaScript pop-up boxes are very important part of web applications. JavaScript programming allows 3 types of pop-up boxes or dialog boxes. Alert boxes Confirm boxes Prompts Alert Boxes Alert boxes give immediate feedback to the user. There are many reasons to provide an alert message to users. To give them some information Give … Read more

## JavaScript – Exercise 07: Switch – Case Statements

Previous Next In the previous post, you learned that the conditional statements can change the direction or flow of the program. One type of conditional statement use if-else structure. Another type of conditional statement is called the switch-case statement. A user input the choice from a given set of options and switch receives the input. … Read more 