Sunday, May 10, 2020

Multiplication using java

Program:

package firstjava;
import java.util.Scanner;
public class FirstJava {
    public static void main(String[] args) {
        // TODO code application logic here
        int a, b;

        Scanner s1 = new Scanner(System.in);
        System.out.println("Enter value a : ");
        a = s1.nextInt();

        Scanner s2 = new Scanner(System.in);
        System.out.println("Enter value b : ");
        b = s2.nextInt();

        int c = a * b;

        System.out.println("Result is : " + c);
    }
}


Output :

run:
Enter value a : 
10
Enter value b : 
5
Result is : 50
BUILD SUCCESSFUL (total time: 11 seconds)

first-angular Project

Output : 


I have created "first-angular" name project and in this project have a 3 components named as header, footer and section which inside the header and footer.

This is simple and first project for starting Angular. 


Program Description :
I have created 3 components named as header, footer and section which inside the header and footer.
 

Simple Example of div tag in html with css

HTML and CSS Code : <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <m...