SORT WORDS IN ALPHABETICAL ORDER

  ************************************************************************ 

W.A.P TO SORT WORDS IN ALPHABETICAL ORDER

************************************************************************  

JAVA Program







   



  
Online compiler

Output:


************************************************************************ 

C Program



Online Compiler 

 

************************************************************************ 

C++ Program

Online Compiler

************************************************************************ 

C# Program


 
 
Output:

************************************************************************ 

PHP Program


Online Compiler

Php is a server side scripting language.

************************************************************************ 

JAVASCRIPT Program

 <script type="text/javascript">


var string = prompt("Enter a string: ");
var stringArray = string.split(' ');
stringArray.sort();
console.log(stringArray.join(' '));





</script>

Online Compiler

************************************************************************ 

PYTHON Program

 

Online Compiler: 

************************************************************************  










Comments

Popular posts from this blog

SAME NAME IN CLASS METHOD AND CONSTRUCTOR

PALINDROME NUMBER

FIBONACCI SERIES