All swift programs with an examples


techstudy.org

Kindle Paperwhite High Resolution Display Tablet | Rs. 9999

  1. Write a Swift program to print 'Hello World!'
  2. Write a Swift program to compute the sum of the two integers
  3. Write a Swift program that accept 2 integer values and return true if one of them is 30 or if their sum is 30
  4. Write a Swift program to test whether a value presents sequentially three times in an array of integers or not
  5. Write a Swift program to count the number of times that two 4's are next to each other in a given array of integers
  6. Write a Swift program to convert the last three characters in upper case
  7. Write a Swift program to test whether the last digit of the two given integer values are same or not
  8. Write a Swift program to find the largest number among three given integers
  9. Write a Swift program to compute the sum of all the elements of a given array
  10. Write a Swift program to check if a given array of integers contains 4 twice, or 8 twice
  11. Write a Swift program to test if an array of integers contains a 4 or a 8
  12. Write a Swift program to find the larger value of a given array of integers and set all the other elements with that value
  13. Write a Swift program that accept two strings and return their concatenation, except the first char of each string
  14. Write a Swift program to move the last two characters of a given string to the start string
  15. Write a Swift program to test if a given string starts with "test"
  16. Write a Swift program to draw a HTML string as bold or italic text
  17. Write a Swift program to insert a given string to another given string where the second string will be in the middle of the first string
  18. Write a Swift program to return the first half of a given string of even length
  19. Write a Swift program to create a string made of two copies of the last two characters of a given string
  20. Write a Swift program to rotate the elements of an array of integers to left direction
     




Related Topics



Responses




Popular Posts

Facebook

Founded in 2016, Tech Study passionately delivers stylish and dynamic innovative information to programmer and technology lovers. http://www.techstudy.org/.