Posts

Create a cool login page using HTML+CSS!!..😍

Image
This login page includes a form where users can input their username and password, as well as a button to submit the form. Using HTML+CSS🔥 Code:- <! DOCTYPE html > < html lang = "en" > < head >     < meta charset = "UTF-8" >     < meta http-equiv = "X-UA-Compatible" content = "IE=edge" >     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >     < title > Login </ title >     < style >         form {             text-align : center ;             background-color : black ;             color : white ;             margin-left : 100px ;             margin-right : 100px ;             margin-top : 100px ;         }       ...

Create a Java program Where number is generated between 1-100 guess the number until you find it!!🔥

Image
Mini Project Generate a  random number  between 1-100 Ask the user to guess the number Until the user Find it.If the user fails to find the number use -1 to check what the number was generated. Code in java Language:- import java.lang.Math; import java.util.Scanner;  class project{ public static void main(String[] args){ Scanner sc= new Scanner(System.in); int ran=(int)(Math.random()*100); int user_num; int i; while(true){ user_num=sc.nextInt(); if(user_num==-1){ System.out.println("Random number "+ran); break; } if(ran==user_num){ System.out.println("Great!you find the number is " +ran); break; } else if(user_num<ran){ System.out.println("Sorry!the number is input less"); } else if(user_num>ran){ System.out.println("Sorry!the number is input more");                }           }      } } Output:- ThankYou!Keep Learning..🔥