How to do the student mark calculation in Angular

In this tutorials will teach How to do the student mark calculation in Angular. First you have to add the FormsModule inside the imports. Create the new Components studentmarks studentmarks.component.html <form> <h1>Add Students Marks Calculation</h1> <div> <label >Marks 1</label> <input type = “text” name=”num1″ [(ngModel)] = “marks1″ class=”form-control” placeholder=”Enter Num 1″> </div> <div> <label >Marks

How to do the student mark calculation in Angular Read More »

Angular How to Add Two Number

In this tutorials will teach How to add two numbers in Angular. First you have to add the FormsModule inside the imports. Create the new Components addnumbers addnum.components.html <form> <h1>Add Two Numbers</h1> <div> <label >Number 1</label> <input type = “text” name=”num1″ [(ngModel)] = “num1″ class=”form-control” placeholder=”Enter Num 1″> </div> <div> <label >Number 2</label> <input type

Angular How to Add Two Number Read More »

Array counting the 0 in Java

Create a 10 element integer array and store some integer values display as the counting of 0. public class JavaEx { public static void main(String args[]) { int numbers[] = {10,15,0,0,6,0,0,1,6,4}; int x,count,len; count = 0; len = numbers.length; for(x= 0; x < len; x++) { if(numbers[x]==0) { System.out.println(numbers[x]); count++; } } System.out.println(count); } }

Array counting the 0 in Java Read More »

DataInputStream using Java

in this tutorials you will be learning  DataInputStream using Java.input the integer number and float number and press enter key then show output as readable integer number and float number. import java.io.DataInputStream; public class JavaEx { public static void main(String args[]) { DataInputStream in = new DataInputStream(System.in); int Intnum = 0; float Floatnum = 0.0f;

DataInputStream using Java Read More »