plz tell fast ok....,...
Answers
Explanation:
Drawing a perfectly straight line free hand is extremely difficult. Even with tons of practice, it can still be very difficult to get perfect. Luckily, most drawings look better when the lines aren’t perfectly straight :)
Nevertheless, I’ve got some tips that might help you to get your lines straighter.
Lighten your pressure on the page. You can do this be lightening your grip and holding the pencil about half way along the shaft (not near the tip!). Use gravity to apply the pressure on the page and don’t press any harder.
Keep your fingers and wrist fairly static and move your entire arm from the shoulder to draw the line. There will be less chance of shakiness from your shoulder than from your fingers.
Practice the line several times just above the surface before actually drawing it. This frees up the muscles that you will use and gives you more confidence to make the mark.
Make the mark in one continuous movement and with confidence. The moment you stop, pause or hesitate is the moment that your line will get wonky.
I have got a post on my blog to discuss how to lighten up the pressure and grip it lightly
Mark me Brainlist.....
import java.util.Scanner;
public class FiftyPrimes
{
// Return true if a number n is prime
public static boolean isPrime(long n)
{
// Check division from 2 to sqrt(n)
for (long i = 2; i <= Math.sqrt(n); i++)
{
if (n % i == 0)
{
return false;
}
}
// If no division is found, number is prime
return true;
}
public static void main(String[] args)
{
// Create Scanner object
Scanner sc = new Scanner(System.in);
// Take user input
System.out.print("Enter the starting point: ");
long start = sc.nextInt();
// Close Scanner object
sc.close();
// If start point is less than 2, make it 2
if (start < 2)
{
start = 2;
}
int numberOfPrimes = 0; // Number of primes printed
long number = start; // Number to be tested for prime
// Iterate until 50 primes are printed
while (numberOfPrimes < 50)
{
if (isPrime(number))
{
System.out.println(number);
numberOfPrimes++;
}
number++;
}
}
}