Question: Can you help me write a java code for the following: 1 . write a java code that would display a given charater 1 0

Can you help me write a java code for the following:
1. write a java code that would display a given charater 10 times
2. write a for loop that would calcualte the factorial of 7
3. write a while loop that would display the integers between 1 and 25.(Hint: start with int x equal to 1, while x is less than or equal to 26)
4. write a while loop that would test if a given integer is a prime (Hint: a number 'a' divisible by 'b' will have a%b equal to zero)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!