Sesiones de PyR
Who founded Sololearn
0 Votos
2 RespuestasCHALLENGE?????
0 Votos
5 RespuestasAssign each track runner a roster number and calculate the average age of the team.
As output the program should print the roster in three columns like in the following format:
Roster # Name Age
1 First Name 18
2 Second Name 19
3 Third Name 19
4 Fourth Name 20
5 Fifth Name 18
The average age of the team is 18.80.
-1 Voto
1 RespuestaAssign each track runner a roster number and calculate the average age of the team.
As output the program should print the roster in three columns like in the following format:
Roster # Name Age
1 First Name 18
2 Second Name 19
3 Third Name 19
4 Fourth Name 20
5 Fifth Name 18
The average age of the team is 18.80.
0 Votos
1 Respuestausing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SoloLearn
{
class Program
{
static void Main(string[] args)
{
int age = Convert.ToInt32(Console.ReadLine());
int broAge = Convert.ToInt32(Console .Readline());
Console.WriteLine("You are {0} years old", "your bro is {1}", age, broAge );
}
}
}
-1 Voto
8 RespuestasUnder 15
5 Votos
12 RespuestasEn tendencia hoy
What's wrong in my code?
4 Votes
App Development
1 Votes
GUI-Based Python code in Webpage
2 Votes
HTML
1 Votes
Introduction of html
0 Votes
Web Developer Job?
1 Votes
CSS or Tailwind
1 Votes
Russian
0 Votes