1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ruslelena [56]
4 years ago
7

Write a programme to find the sum of first three cube number?

Computers and Technology
1 answer:
aleksandrvk [35]4 years ago
7 0

// Simple Java program to find sum of series

// with cubes of first n natural numbers

import java.util.*;

import java.lang.*;

class GFG {

/* Returns the sum of series */

public static int sumOfSeries(int n)

{

int sum = 0;

for (int x = 1; x <= n; x++)

sum += x * x * x;

return sum;

}

// Driver Function

public static void main(String[] args)

{

int n = 5;

System.out.println(sumOfSeries(n));

}

}

// Code Contributed by Mohit Gupta_OMG <(0_o)>

You might be interested in
What are the importance of computer in today's generation​
MariettaO [177]

Answer:

We use it everyday for all sorts of stuff

Explanation:

8 0
3 years ago
Sydney Bark is twenty-three years old, and is looking forward to celebrating her birthday on April 12. For her birthday, she sav
DochEvi [55]

Answer:

a future date

Explanation:

Because most people when trying to guess a password, start with basic ones like: 1234,abcde, password,l and dates (like their birthday). whereas, the person would never guess it was a future date like when the person would be 30 or when they are going on a trip .

5 0
3 years ago
You are the information security officer at a medium-sized company (1,500 employees). the cio asks you to explain why you believ
Ivahew [28]
If your CIO asks such a stupid question run for the hill, he should not hold that title.
Every company, small, medium or large should have Firewalls, Intrusion Detection, Managed Virus Protection Software at the very least. Windows is the most deployed OS in the world and of course the main target of hackers i.e Viruses. MAC's to a lesser extent and Unix while probably the least vulnerable are still not immune to Viruses/Trojan and other Malware.

Users can still be the victims of trojan horses, phishing scams, and other online fraud. There<span> is no such thing as a 100% safe computer, a </span>Mac<span>, Windows, and even Linux are all capable of being infected with a </span>virus<span> or other malware.
</span>
Lastly, physical access to any computer that is not encrypted is vulnerable.
5 0
3 years ago
PLEASE ANSWER DUE TODAY
never [62]

Answer:

I am not sure on exactly how they want this but this is how I'd fill it out:

Also I can't see the whole question so I'll fill it out as best as I can.

Explanation:

Employee 1 - 78 hours - $2 an hour - $2,184 -

Employee 2 - Numbers of hours worked - their hourly pay - hours x hourly pay x days worked (if they work everyday for 2 weeks you'd x's it by 14.)

All I see is employee 1 and 78 hours so I tried my best!

Please mark brainliest and 5 stars, thanks!

4 0
3 years ago
(15) You are a Pascal teacher (a very good programmer using assembly language(i.e., machine language) of your local machine). Yo
ASHA 777 [7]
If you Could out A B C D separate that would help
7 0
3 years ago
Other questions:
  • You work for a large enterprise company that handles time-sensitive information. Your supervisor has asked that you set up a con
    8·1 answer
  • Search engines enable you to
    9·2 answers
  • A person who has a been exposed to technology at a young age is?
    8·1 answer
  • What is blockchain? How it works? I heard bitcoin uses it.
    8·1 answer
  • write an algorithm that gets two values: the price for item A and the quantity purchased. The algorithm should then print the to
    13·1 answer
  • What does a proxy server do?
    5·2 answers
  • Which task is most suitable for creating an algorithm?
    15·2 answers
  • _____ is the measure of a system’s ability to expand, change, or downsize easily to meet the changing needs of a business enterp
    11·1 answer
  • Where the heck is the leader board?
    5·1 answer
  • What is collaboration
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!