Sign in to test your solution.
// Tweet program
using System;
using System.Collections.Generic;
class Submission
{
// -------------------------
// Subprograms
// -------------------------
static List<string> tweets(string message, int num_chars)
{
}
// -------------------------
// Main program
// -------------------------
public static void Main(string[] args)
{
Console.WriteLine("Enter the message: ");
string message = Console.ReadLine();
Console.WriteLine("How many characters per message? :");
int max_chars = Convert.ToInt32(Console.ReadLine());
List<string> tweet_elements = tweets(message, max_chars);
foreach (string tweet in tweet_elements)
{
Console.WriteLine(tweet);
}
}
}
You can submit as many times as you like. Only your latest submission will be taken into account.
Sign in to test your solution.