Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2.
- public static void rep1(String word, int multi)
- {
- for(int x = 0 x <= multi; x++)
- {
- System.out.print(word)
- }
- }
- 4. public static void daysinMonth(int month)
- {
- if(month = 1){
- System.out.print("31");
- } else if(month = 2){
- System.out.print("28");
- } else if(month = 3){
- System.out.print("31");
- } else if(month = 4){
- System.out.print("30");
- } else if(month = 4){
- System.out.print("31");
- } else if(month = 5){
- System.out.print("30");
- } else if(month = 6){
- System.out.print("31");
- } else if (month = 7){
- System.out.print("31");
- } else if (month = 8){
- System.out.print("31");
- } else if (month = 9){
- System.out.print("30");
- } else if (month = 10){
- System.out.print("31");
- } else if (month = 11){
- System.out.print("30");
- } else if (month = 12){
- System.out.print("31:);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment