c program to generate prime numbers from 1 to 100.Also count prime numbers. ​

Answers

Answer 1

Answer:

Step-by-step explanation:

#include <stdio.h>

int main()

{

  int num1, num2, flag_var, i, j;

 

  /* Ask user to input the from/to range

   * like 1 to 100, 10 to 1000 etc.

   */

  printf("Enter two range(input integer numbers only):");

  //Store the range in variables using scanf

  scanf("%d %d", &num1, &num2);

 

  //Display prime numbers for input range

  printf("Prime numbers from %d and %d are:\n", num1, num2);

  for(i=num1+1; i<num2; ++i)

  {

     flag_var=0;

     for(j=2; j<=i/2; ++j)

     {

        if(i%j==0)

        {

           flag_var=1;

           break;

        }

     }

     if(flag_var==0)

        printf("%d\n",i);

 }

 return 0;

}


Related Questions

What should be added to 9x to get 15x ?
with formal​

Answers

Answer:

15x-9x=6x

please mark me as brainliest

Answer:

6x.

Step-by-step explanation:

15x - 9x = 6x.

Farah is x years old. Ibtisam is 3 years younger than Farah. Muna is twice as old as Ibtisam. Write and expression in terms of x, for
(a) Ibtisam's age,
(b) The sum of their three ages, giving your answer in its simplest form.​

Answers

Answer:

Farah: x

Ibtisam: x-3

Muna: 2(x-3) or 2x-6

Sum of all their ages: 4x-6

Step-by-step explanation:

Farah is x, so we don't need an expression for that.

Ibtisam is 3 years younger than Farah, which means that we need to subtract 3 from Farah, and that would be Ibtisam's age. x-3.

Muna is 2 TIMES Ibtisam's age, so we need to multiply whatever expression taht was used for Ibtisam by 2. Put brackets around the equation with 2 outside: 2(x-3). Solve and you get 4x-6

Now, you have all their ages in expression form, now you need to simplify by adding:

x+x+2x-6

We cannot simplify -6, so we put that aside. Add all the x's and you get 4x, insert the minus 6 at the end:

4x-6

Hope this helps!

--Applepi101

Answer:

a) X -3

b) 4x - 9

Step-by-step explanation:

a) Farah's age is X so Ibtisam will be X - 3 old since he is 3years younger than Farah

b) Farah is X years old

Ibtisam is X - 3 years old

Muna is 2(X -3) since she is 2 times older than Ibtisam.

the sum of Thier ages will be

X + X -3 + 2(x-3)

= 2x - 3 + 2x - 6

= 4x - 9

What is the maximum value of the objective function, P, with the given constraints?

P = 25x+45y

(4x+y≤16)
(x+y≤10)
(x≥0)
(y≥0)

Options

A: 100
B: 410
C: 450
D: 720

Answers

Answer:

D

Step-by-step explanation:

find the greatest number that divides 56 and 84 exactly​

Answers

Answer:

28

Step-by-step explanation:

Find the gcf

Find the area of the parallelogram. Show all your work.

Answers

Answer:

30m^2

Step-by-step explanation:

area of parallelogram is b×h

Answer:

The area of the parallelogram is 30 square meters.

Step-by-step explanation:

The area of a parallelogram is given by the formula:

A = bh

Where b is base and h is height

The base of the parallelogram is:

6 + 4 = 10 m

The height perpendicular to the base is 3 m

Use the formula A = bh:

A = (10)(3)

= 30

So the area of the paralleogram is 30 m^2

Hope this helps!


Find the distance given the coordinates (-2, -1) & (-8, 7) in the simplest form
O 72
072
O 10
O 100

Answers

Answer:

O 10

Step-by-step explanation:

d = √((x2 - x1)² + (y2 - y1)²)

d = √((-8 - -2)² + (7 - -1)²)

d = √((-6)² + (8)²)

d = √(36) + (64)

d = √100

d = 10

Is -1 rational or irrational

and is √3 + -1 Rational or irrational

explain if u can pls​

Answers

Answer:

-1: rational

√3 + -1: irration

Step-by-step explanation:

A rational number is negative, if its numerator and denominator are of the opposite signs.

Hope this helps <3

Rank the following asserts of a commercial Bank in order of decreasing liquidity.
(a) market loans
(b) Reserves with the bank of Ghana
(c) cash
(d) personal loans
(e) sales and repurchase agreements (repos)
(f) mortgages
(g) Government bonds (of from one to five years to motuity)​

Answers

Answer:

(b) Reserves with the bank of Ghana

A bag contains 8 red marbles, 7 blue marbles, and 6 green marbles. Adam randomly picks out a marble from a bag. What is the theoretical probability that Adam will pick a blue marble from the bag?

Answers

Answer:

Step-by-step explanation:

8+7+6

total= 21

blue= 7÷21

1/3

Answer:

1/3

Step-by-step explanation:

total number of marbles 21

blue marbles 7

now ,probability of blue marble =7/21=1 /3

A model rocket is launched with an initial velocity of 240 ft/s. The height, h, in feet, of the rocket t seconds after the launch is given by
h = −16t2 + 240t.
How many seconds after launch will the rocket be 390 ft above the ground? Round to the nearest hundredth of a second.

s (smaller value)
s (larger value)

Answers

Answer:

About 1.85 seconds and 13.15 seconds.

Step-by-step explanation:

The height (in feet) of the rocket t seconds after launch is given by the equation:

[tex]h = -16t^2 + 240 t[/tex]

And we want to determine how many seconds after launch will be rocket be 390 feet above the ground.

Thus, let h = 390 and solve for t:

[tex]390 = -16t^2 +240t[/tex]

Isolate:

[tex]-16t^2 + 240 t - 390 = 0[/tex]

Simplify:

[tex]8t^2 - 120t + 195 = 0[/tex]

We can use the quadratic formula:

[tex]\displaystyle x = \frac{-b\pm\sqrt{b^2 -4ac}}{2a}[/tex]

In this case, a = 8, b = -120, and c = 195. Hence:

[tex]\displaystyle t = \frac{-(-120)\pm \sqrt{(-120)^2 - 4(8)(195)}}{2(8)}[/tex]

Evaluate:

[tex]\displaystyle t = \frac{120\pm\sqrt{8160}}{16}[/tex]

Simplify:

[tex]\displaystyle t = \frac{120\pm4\sqrt{510}}{16} = \frac{30\pm\sqrt{510}}{4}[/tex]

Thus, our two solutions are:

[tex]\displaystyle t = \frac{30+ \sqrt{510}}{4} \approx 13.15 \text{ or } t = \frac{30-\sqrt{510}}{4} \approx 1.85[/tex]

Hence, the rocket will be 390 feet above the ground after about 1.85 seconds and again after about 13.15 seconds.


From a full 2-litre jug of water Sam pours 5/4
litres.

What fraction of a litre is left?

Answers

Answer:

3/4 of a liter

Step-by-step explanation:

2 - 5/4

Get a common denominator

2 *4/4 -  5/4

8/4 - 5/4

3/4

The denominator is 4 so rewrite 2 liters as a fraction with 4 as the denominator.

4/4 = 1 so 2 liters would be 8/4

Now subtract:

8/4 - 5/4 = 3/4

There is 3/4 of a liter left.

find the measure of c

Answers

Answer:

B is the correct answer of this question

find three numbers in dip, such that their sum is 60 and the last one is three times the first​

Answers

30,20 and 10

30 + 20 + 1/3×30 = 60

50 + 10 = 60

60 = 60

Must click thanks and mark brainliest

Consider the given statement. Determine whether its is equivalent to the given statement, a negation, or neither. Attached is the photo reference.

Answers

Answer:

1. Negation

2. Equivalent

3. Neither

4. Neither

Step-by-step explanation:

p ^ ~q

~q → p~

~q ∨ p

~p ∨q

Geometry please need help I don’t know to do this try to help me please!!!!

Answers

Step-by-step explanation:

Note that since [tex]\triangle ABC \cong \triangle DEF,[/tex] we can see from the figure that [tex]\angle B[/tex] and [tex]\angle E[/tex] have the same measure.

a) To solve for the length of [tex]\overline{AB},[/tex] we write

[tex]3x + 6 = 4x \Rightarrow x = 6[/tex]

b) Since the two triangles are congruent, we can say that [tex]\angle A = \angle D[/tex] so we can write

[tex]6y + 12 = 8y + 2[/tex]

Solving for y, we get

[tex]2y = 10 \:\Rightarrow \:y = 5[/tex]

how many wall are there in your room? what are the shape of the floor and ceiling in your room ? how can you find the area of each shape?prepare the answer. present the conclusion in the form of report. plz answer the question in right.​how many wall are there in your room? what are the shape of the floor and ceiling in your room ? how can you find the area of each shape?prepare the answer. present the conclusion in the form of report. plz answer the question in right. plz answer the question steps by step.​

Answers

Answer:

4 walls in my room. The shape of my room is square and my ceiling in square. By looking at it and measuring it. Thats how I found my answer.

I believe this is correct if it is can you mark brainliest? Hope I helped!!!! :)

Answer:

8 walls etc....

Step-by-step explanation:

John and mike got paid $40.00 for washing
car. John work one hour, mike worked 1.5 hrs.
How much do they get paid for time worked?

Answers

This question is incomplete , l can’t answer it . You have to say how much minutes or hours they work to get paid $40 ,if you just say that John’s work one hour and Mike work 1.5 hours then I don’t know what to solve ,this question is a complete

Solve each system by graphing.

Answers

Answer:

(2,-1)

Step-by-step explanation:

Solved using math.

Answer:

The solution is (2, -1) to show this by graphing do y = -1 by making a straight horizontal line at (0,-1) . And then for the other equation make a line where it starts at (0,4) and passes point (2,-1). Just plot those two points and connect them and you'll have made the line.

Step-by-step explanation:

.

b) Lấy được ít nhất một quả cầu trắng

Answers

Answer:

I don't know the answer. I don't know the answer. I don't know the answer. I don't know the answer. I don't know the answer. I don't know the answer. I don't know the answer. I don't know the answer. I don't know the answer. I don't know the answer. I don't know the answer. I don't know the answer. I don't know the answer. I don't know the answer. I don't know the answer. I don't know the answer. I don't know the answer. I don't know the answer. I don't know the answer. I don't know the answer.

simplify √-18

A 3i√2
B 9i√2
C -3√2

Answers

[tex]\\ \rm\longmapsto \sqrt{-18}[/tex]

[tex]\\ \rm\longmapsto \sqrt{18}i[/tex]

[tex]\\ \rm\longmapsto \sqrt{9\times 2}i[/tex]

[tex]\\ \rm\longmapsto \sqrt{3(3)(2)}i[/tex]

[tex]\\ \rm\longmapsto 3i\sqrt{2}[/tex]

Answer:

A. [tex]\displaystyle 3i\sqrt{2}[/tex]

Step-by-step explanation:

[tex]\displaystyle \sqrt{-18} → \sqrt{[2][-1][9]}\\ \\ 3i\sqrt{2}[/tex]

As you can see, you need a perfect square to wourk with, which in this case is 9. Now, [tex]\displaystyle \sqrt{-1}[/tex] comes out as an imaginary number [tex]\displaystyle [i],[/tex]so pull it out of the radical alongside 3, [tex]\displaystyle \sqrt{9}.[/tex]

I am joyous to assist you at any time.

please help
Question: 6b = 18
Answer: ?

Answers

Answer:

6b=18

b=18/6

b=3

.

.

.

.

.

.

Answer:

6b=18

b=18/6

b=3

.

Step-by-step explanation:

Mr. Ghale bought a secondhand scooter for Rs 1,40,000. He spent Rs 7,500 to repair it. At what price should he sell it to gain 10% on his total investment ?​

Answers

Answer:

153250

Step-by-step explanation:

153250

anybody know how to do this? if so, please explain!

Answers

Answer:

The x-intercepts are at (-4, 0) and (3, 0). The y-intercept is at (0, 1.2).

The graph is increasing at (-4, 0), (2.082, -0.604), (3, 0).

The graph is decreasing at (-2.082, 3.004), (0, 1.2), (1, 0)

Step-by-step explanation:

How many 1/8 servings can I get from 3/4

Answers

Answer:

6 1/8th cups in 3/4 cups

Step-by-step explanation:

Answer:

6

Step-by-step explanation:

you convert 3/4 into 8ths which will be 6/8

Verizon charges a $40 sign-up fee and the $60 a month for their new hotspot. T-Mobile
charges $100 sign-up fee and then $45 per month for their new hotspot. After how many
months of service will the two company's fees be the same?

Answers

Step-by-step explanation:

Start Unlimited: 

$70 for one line

$60 for two lines

$45 for three lines

$35 for four lines

Play More Unlimited: 

$80 for one line

$70 for two lines

$55 for three lines

$45 for four lines

Do More Unlimited: 

$80 for one line

$70 for two lines

$55 for three lines

$45 for four lines

Get More Unlimited: 

$90 for one line

$80 for two lines

$65 for three lines

$55 for four lines

Answer:

4 months

As we show that ;

40 + (60x * 4)  = 280

100 + (45x * 4) = 280

but in simultaneous equations Verizon must be set equal to 240 being 80 x 3

and T mobile must be equal to 45 x 4 = 180

so that 240+ 180 = 420 to find 4

This would be a method on distribution as "60 sign up is 1/3 more than 1st equation.

Step-by-step explanation:

This is a simultaneous equation but trial and error is below to prove all is true.

step 1 make all equations same

40s + (60x)      * 3 = 180x  LCM   = 80 x 3   =  1   1/3 of 60

100s + (45x)     * 4 = 180x LCM   = 45  x 4   =  1 of 45 as verizon charges 1/3 more sign up.

100s- 40s + 180x = (180x) =  240 + 180

60s + 180x = 420

s = 60

so our equations must each end with 420

when we get 60s + 180x = 420  then

420 - 180 = 240

240/60 =  4

x = 4 months

Verizon = 1st and T mobile = 2nd

40 + (60x * 5)  = 340

100 + 45x * 5 = 325

with $15 out after 5 months so we try 6 months

40 + (60x * 6)  = 400

100 + 45x * 6 = 370

and see this is increasing in difference, so try a smaller value of months..

We try 4 months;

40 + (60x * 4)  = 280

100 + (45x * 4) = 280


If f(x) = 3x + 10 and g(x) = 2x - 4, find (f+ g)(x).

Answers

Answer:

5x+6

Step-by-step explanation:

f(x) = 3x + 10

g(x) = 2x - 4

(f+ g)(x)= 3x + 10 +  2x - 4

Combine like terms

           = 5x+6

simplify the following expression
6a^4c+8ac^2-4a^4c-15-10ac^2

Answers

Answer:

2a^4c-2ac^2-15

Step-by-step explanation:

Sorry, I not sure if this is right or not cause I don't know if the exponent for -4a^4c is that or -4a^4c-15, but I'm just going to go with -4a^4c. However aside from that you just combine like terms.

Answer:

[tex]2a^4c-2ac^2-15[/tex]

Step-by-step explanation:

[tex]6a^4c+8ac^2-4a^4c-15-10ac^2[/tex]

We need to organize this expression into groups of like terms, so we can combine them easier. There are 2 groups of like terms,

[tex]6a^4c-4a^4c[/tex] and [tex]8ac^2-10ac^2[/tex]

[tex]6a^4c-4a^4c+8ac^2-10ac^2-15[/tex]

Add similar elements:

[tex]2a^4c+8ac^2-10ac^2-15[/tex]

Add, [tex]8ac^2-10ac^2=-2ac^2[/tex]

[tex]=2a^4c-2ac^2-15[/tex]

OAmalOHopeO

Box D and Box E are made from unit cubes of the same size.
Which has a greater volume, Box D or Box E? Explain.

Answers

Answer:

Box E has a greater volume than Box D.

Step-by-step explanation:

Step 1 : Find the volume of Box D.

The formula for volume of a rectangular prism such as this is

height * width * depth

Knowing this, let's substitute the values.

3 * 5 * 1 = 15

The volume of box d is 15 cubic units.

Step 2 : Find the volume of Box E.

height * width * depth

4 * 4 * 1 = 16

The volume of box e is 16 cubic units. Therefore box E has a greater volume than box D.

The volume of box E is greater than volume of box D.

The given boxes are in the shape of rectangular prism.

Now find the volumes of each box.

Volume of Box D:

Volume = length×width×height

=3×5×1

=15 cubic units.

Volume of Box E:

Volume = length×width×height

=4×4×1

=16 cubic units.

Hence, the volume of E is greater than volume of D.

To learn more on Volume click:

https://brainly.com/question/13798973

#SPJ3

Each side of a regular polygon is 3.2 cm in length. The perimeter of the polygon is 19.2 cm. How many sides does the polygon have? What is the name of the polygon?​

Answers

Answer:

The polygon consists of 6 sides and the given polygon is a regular hexagon.

Step-by-step explanation:

The definition of perimeter is the total measure of the side lengths of a polygon. If the polygon said is regular, it means the polygon has equal sides and equal angles.

So the perimeter of a regular polygon is given by the formula:

P = (length of one side) x (number of sides)

In this case, the perimeter of the polygon is 19.2 cm and one side is equal to 3.2 cm.

DIVIDE (use the formula but in division to maintain a proportonal relationship):

19.2 ÷ 3.2 = 6

You could alsk check if its correct using the formula:

19.2 = 3.2 x 6 (TRUE)

A 6 sided regular polygon is known as a HEXAGON.

Hope this helps!

find the surface area of each figure. round your answer to the nearest tenth

Answers

Answer: 378.57mi²

Step-by-step explanation:

Formula = a²+2a√{(a²/4)+h²}

please click thanks and mark brainliest if you like :)

Other Questions
- Olivia skates twice as far as Stephanie. This sum of their distances is 96 miles per month. How manymiles per month does Olivia skate?A.32 milesB.64 milesC.48 milesD.24 miles Could a diplomatic solution have been found that stopped short of war? If so, who bears the most fault for failing to find that solution? what is exponential growth? Express using exponents and simplify any numerical coefficients. Convert 413 in base 5 to base 10 If the diameter of a hockey rink is 250 ft what is the surface area of the sphere? there are 108 flowers. 1/9 of them bloomed. How many did not bloom? How many did? Alberto quiere envasar 32 toneladas de arroz en sacos de 15 kilogramos cada uno, Cuntos sacos necesitarn? A particular company's net sales, in billions, from 2008 to 2018 can be modeled by the expression t2 + 12t + 74, where t is the number of years since the end of 2008. What does the constant term of the expression represent in terms of the context? The company earned 74 billion dollars from 2008 to 2018. The company earned 12 billion dollars from 2008 to 2018. The company earned 74 billion dollars in 2008. The company earned 12 billion dollars in 2008. two triangles are similar what is x what's the atomic weight of salt ? What are some examples of possibilism today? under which Language groups does Nepali language fall? Write briefly about it's. A woman took contraceptive pills to prevent pregnancy. The pill inhibits secretions of the Follicle Stimulating Hormone(FSH) from the pituitary gland. Explain the effects of taking contraceptive pills on the menstrual cycle.I need an answer now... Pls help The point slope formula (if possible) to write an equation of the line given the following informationwe So Im a girl thats going into 10th grade and theres this guy thats going into 9th grade, would it be weird if we dated since Im a girl thats older then him? what do you mean by networking devive? The probability of A is 7/20, the probability of A intersection B is 49/400 what is the probability of B? What is topography?........ need help with some history