PHP Operators

Operators are used to perform some actions on variables and values. There are 7 types of operators. 1.PHP Arithmetic Operators This operator is used with numerical values so that one can get value of a particular value. Arithmetic operators are +, – , * , / , % , **(power) Syntax:Addition- $a + $bSubtraction- $a … Read more

Diamond pattern in java

diamond pattern in java is one of the interesting pattern program for beginner and intermediate learners of programming. If you see diamond pattern you will see it is combination of two triangle pattern that is upper and lower triangle. Here we will see different diamond pattern programs in java. We will start with basic pattern … Read more

Primitive Data Types in C Programming

1. What is data type in C Data type specifies what type of data a variable can hold. There are four category of data type in C language.  They are as follows: Types Data Types Basic (Primitive) data types int, char, float, double Enumeration data type Enum Derived data type pointer, array, structure, union Void … Read more

Business Studies Class 12 Notes Directing

1 Meaning of Directing Directing capability giving instructions, guiding, counseling, motivating and main the team of workers in a corporation in doing work to gain Organizational goals. Directing is a key managerial feature to be carried out by using the supervisor alongside with planning, organizing, staffing and controlling. From pinnacle govt to supervisor performs the … Read more

PHP Variables-Declare Initialize Local, Global, Static Variables

Variables are those which is used to store the information. They act like a container. It start with ‘$’ this sign and follow by name of the variable. Variable name should either start with Underscore or some letter but I can never start with a number. Example:

Result: 5  Price is 66.5 My Name … Read more

PHP Single line and multiline Comments

By comment it means that the developers do not want to execute that particular code. It is generally to test that this particular code is running properly or not. Single line comment:  // Multiline comment: /* …..                          …  */ Example:

Result:PHP stand … Read more

Program to check a String palindrome in C

A string that reads the same a forwards and backwards is known as palindrome. Like MADAM, RADAR, STATS, SOLOS, TENET, WOW Here we will see programs to check whether a string is palindrome or not. We use gcc 9.1.0 compiler to run our programs We will discuss Palindrome program as below Simple program using loop … Read more

Categories C

Square Star Pattern Program In Java

In Java programming to print square star pattern we need to use loop. We use all three loops to print star pattern. Lets see one by one 1 Square Star Pattern Program using For loop Steps for printing star pattern Create a scanner class to get input from keyboard using new Scanner(System.in); accept integer value … Read more