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

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 program. … 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 web … 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

JavaScript – Exercise 04 -External JavaScript Files

Previous Next There are many ways to insert JavaScript into an HTML document. One way is to add the script directly to the HTML document.This method is called adding an “Inline script”.You can add an inline script at any place within an HTML document, but most web developers like to place the scripts in three … Read more

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Exit mobile version