Answer:
I think it’s slide shorter view
Explanation:
Answer:
Explanation:
#include <iostream>
using namespace std;
//This is the function in the next line
double MilesToLaps(double userMiles) {
double Laps;
Laps = userMiles * 4;
return Laps
}
//This is the main fucnction
int main(){
double Miles, FinLap;
cout << "Enter the number of miles " << endl;
cin>>Miles;
FinLap = MilesToLaps(Miles);
cout << "The number of laps ran is: "<<setprecision(2)<<Finlap<<endI;
}
Answer:
The answer is "Backend".
Explanation:
The Backend Development applies to just the webserver side when they concentrate mostly on how well the site functions. The website generally includes 3 sections consist of all this web design: a client, program, or server. The Backend user codes are the information provided by the database to both the web browser.
Answer:
- import java.util.Scanner;
-
- public class Main {
- public static void main(String[] args) {
- Scanner input = new Scanner(System.in);
- int n = input.nextInt();
- int l = 1;
- for(int i=1; i <= n; i++){
- for(int j=1; j<= l; j++){
- System.out.print("*");
- }
- System.out.println();
- l = l + 2;
- }
- l = l - 4;
- for(int i=1; i < n; i++){
- for(int j=1; j <= l; j++){
- System.out.print("*");
- }
- System.out.println();
- l = l-2;
- }
- }
- }
Explanation:
The solution code is written in Java.
Firstly use a Scanner object to accept an input integer (Line 5-6).
Create the first set of inner loops to print the upper part of the diamond shape (Line 8-14). The variable l is to set the limit number of asterisk to be printed in each row.
Next, create another inner loops to print the lower part of the diamond shape (Line 17-23). The same variable l is used to set the limit number of asterisk to be printed in each row.