Calculating and Formatting Dynamics
Opgave
Swipe to start coding
As of 2020, the USA population was 331002651, of which 273975139 - urban population. The Urban population (%) is the proportion of the urban population to the total. Your tasks are:
- Print total and urban populations with commas every thousand;
- Calculate urban population (%), and print the result in the following format:
45.653%
.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 3. Kapitel 9
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Suggested prompts:
Opsummér dette kapitel
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 4.35
Calculating and Formatting Dynamics
Stryg for at vise menuen
Opgave
Swipe to start coding
As of 2020, the USA population was 331002651, of which 273975139 - urban population. The Urban population (%) is the proportion of the urban population to the total. Your tasks are:
- Print total and urban populations with commas every thousand;
- Calculate urban population (%), and print the result in the following format:
45.653%
.
Løsning
Var alt klart?
Tak for dine kommentarer!
Awesome!
Completion rate improved to 4.35Sektion 3. Kapitel 9
single