Level 7 - String operations 0 of 9 activities solved
  1. Debit card Not yet solved
  2. Teacher code Not yet solved
  3. Caesar cipher Not yet solved
  4. Airline ticket Not yet solved
  5. Disemvowel Not yet solved
  6. Your move Not yet solved
  7. Tweet Not yet solved
  8. Valid address Not yet solved
  9. Palindrome Not yet solved
Next series Level 8 - Files and exceptions
Level 7 - String operations

Tweet

Sign in to hand in your solution and get feedback.

// 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); } } }