Posts

Showing posts from September, 2021

fetch data

  import   React , {  useState , useEffect  }  from   'react' ; import   './Box.css' ; function   Box () {      const  [ results ,  setCount ] =  useState ([]);      async   function   M1 () {      const   response  =  await   fetch ( 'https://api.unsplash.com/search/photos?page="+"&query="+cars+"&client_id=HKkVWrW8SC28UJgRPPZ-z0UfJVSH4a7Ym2qoLCa35fY' );           const   data  =   await   response . json ();      setCount ( data . results );      console . log ( data . results );        }      useEffect (()  =>  {          M1 ();   },[]);             return  (          < div >                                  < div   className = "imagess" >              { results . map (( img ) => {                  return (                      < >                                                                < span   className = "imagess" >                      < img   className = "imgback&

DS/Alogo Job Ready

 1)Check prime  Is A Number Prime concept:- no divide hona chiya khud sa ya fir apena app sa toa n  ko n number tak divde karka dekho then agar count 2 aya means 1 or apena app sa toa number is prime easy haa 1)for loop ; 2)int count = 0; 3)if check div horaha haa ke nahi t%i == 0; 4)if count==2 then prime; public class HelloWorld{      public static void main(String []args){         System.out.println("Hello World");                  int t  = 114;         int count = 0;                  for(int i = 1;i<=t;i++){             if(t%i==0){                 count++;             };         };                          if(count==2){                 System.out.println("it is prime");             }else{                 System.out.println("it is not prime");             }               } } import java.util.*;      public class Main{      public static void main(String[] args) {       Scanner scn = new Scanner(System.in);          int t = scn.nextInt();             

Remote websites

click   worktech remoteio angellist sidehusel wwr yellow Dog