Basic JavaScript – Exercise 06 -Conditional Statements

Previous Next Conditional statements in JavaScript uses if-else or switch statement that change the direction of the program in run-time. The conditional statement check certain conditions and then based on the truth value of the condition, execute a block of code. The if-else statements could be nested to make a if-if-else-else or if-else- else-if statements. … Read more

C Program To Identify A Quadrilateral

The program to identify a quadrilateral read inputs – length of sides and angles made by the quadrilateral shape and prints the shape name as output. We compiled the program using Dev-C++ compiler installed on a windows 7 64-bit system. You may try another standard C compiler, but make sure to modify the code according … Read more

C Program For Law Of Sine Problems

With the law of sine, you can find any unknown angle of a given triangle or the length of a particular side of a triangle or the length of a particular side of a triangle. This is a fundamental concept of trigonometry. We used Dev-C++ to compile the program, but you may use any other … Read more

C Program to Implement Stack using Linked-List

Previous Next A stack is an abstract data structure where elements are pushed and deleted from only one end. We call this top of a stack. This program implement stack using a linked-list structure. The linked-list is a linear list in which you can enter data only from one end. You must always insert from … Read more

Basic JavaScript- Exercise-05 – Variable Declarations

Previous Next Variables are the most important element of any programming language. Variables hold values so that you can write expressions using them.You evaluate the expressions and again use a variable to store the results. In JavaScript, variables are created using keyword “var”. There is no need to declare the type of the variable before … Read more

C++ Program to Compute the Sine and Cosine Series

Previous Next The program for sine and cosine is based on power series especially Taylor series. A power series is a form of representation of some functions that converge into a single value. In simple words, some functions are in the form of an infinite series (A power series is also a form of infinite … Read more

C++ Program for Sum of Even and Odd Numbers

This is a simple program to compute the sum of first 10 even and odd numbers and display the results.It is intended for beginner level learners of C programming. The program is written and compiled using Dev-C++ 4.9.9.2 version compiler tool. You will find following sections in this post – problem definition, flowchart, program source … Read more

C Program to Implement a Stack

Previous Next A stack is a common data structure used in many applications. It is an abstract data type defined not by its data type, but by its operations. Stack operations are critical to its implementation. We will create a C++ stack using linked-list in this article. This program demonstrates the implementation of a stack … Read more

C Program to find Area of a Triangle

The program computes the area of triangle once he user enters input values for the triangle. The inputs for the triangle are the length of base and height of the triangle. We compiled this program using Dev-C++ compiler installed on Windows 7 PC. You can use any standard C compiler if you like, but make … Read more

C Program To Count Frequency Of Vowels

The C program to count the frequency of vowels, consonants and white spaces for a given word or a sentence is a string manipulation program. A C loop with conditions that checks the given input string and count the number of vowels, consonants, and white spaces. We compiled this program using Dev-C++ compiler installed on a … Read more

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

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