public class CodeSnippets { public static void main(String[] args) { System.out.println("a) Print all 26 letters of the alphabet (lowercase) separated by commas."); for(int i=0; i<26; i++) System.out.print( (char)('a'+i) + ", "); System.out.println("\n\n"); System.out.println("b) Print the odd numbers between -52 and 40 separated by commas"); for(int i=-52; i<=40; i++) if(i%2 != 0) System.out.print(i + ", "); System.out.println("\n\n"); System.out.println("c) Given a number n print the value of n factorial (n!= 1 * 2 * ... n) "); int n=6; int f=1; for(int i=1; i<=n; i++) f*= i; System.out.println(f); } }