From b2cefa9c1bb3e4eb1b3e7b447446951ab12790c2 Mon Sep 17 00:00:00 2001 From: Palash shah <113499117+shahpalash10@users.noreply.github.com> Date: Sat, 7 Oct 2023 00:23:18 +0530 Subject: [PATCH] Fixed code (12.1) I matched the exact code so that people find it easy to navigate .I have also fixed a couple of variable changes make it easier to navigate --- week 12/Exercise 12.1.java | 122 +++++++++++++++++++------------------ 1 file changed, 62 insertions(+), 60 deletions(-) diff --git a/week 12/Exercise 12.1.java b/week 12/Exercise 12.1.java index 2439ad3..879fc1b 100644 --- a/week 12/Exercise 12.1.java +++ b/week 12/Exercise 12.1.java @@ -3,64 +3,68 @@ public class Question92{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String input = sc.nextLine(); - - - char sumit[]=input.toCharArray(); -int outflag=0; -double sumitnce=0.0,lifeline=0.0; -String o1="" ,o2=""; -double nce=0.0; + char seq[] = input.toCharArray(); + int outflag=0; + + for(int i=0; i