Welcome to my RU-vid channel dedicated to computer programming education in ICSE/ISC schools in India! My channel is designed to be a valuable resource for students and educators alike, providing engaging and informative content on various programming languages, tools, and techniques.
Whether you're a beginner or an experienced programmer, my channel has something for everyone. I offer step-by-step tutorials, coding challenges, and real-world examples to help you build your skills.
I am passionate about helping students develop their coding skills and unlock their full potential. I believe that learning to code is a valuable skill for the 21st century, and my mission is to make it accessible and enjoyable for everyone.
So, whether you're looking to learn the basics of programming or take your skills to the next level, be sure to subscribe to my channel! Thank you and all the very best!
Sir, the O/P, when the keyword is : KRYPTOS and the text to be decoded is : KNOWLEDGE IS POWER is coming wrong. As for the other sample inputs, the outputs are all correct...only for KRYPTOS, it isn't giving the right O/P....I did the exact same code as yours.....what can be possibly wrong, sir?
Yes, but be careful with multiple inputs when String input is also involved, then it may not behave as expected. But my method doesn't have such drawbacks.
Oh I see . Thank you sir . But I did not see it on the official icse website generally when icse releases specimen paper they notify through there website so I got confused thank you for helping
Good morning/Good afternoon/ Good evening Sir, Could you please do class 11 isc course on youtube, explaining each and every aspect, starting from chapter 1. I could not find any such source to follow for isc computer. It would be of great help if you could do so. It's just a request from my side. Thank you Sir.
Sir one program Input - llasevoldog Output- god loves all Numerical of word entered by user And in an array length of each Letter is stored by user Example a[]={3,5,3} Of above
import java.util.Scanner; class Solve{ public static void main(String[] args){ Scanner in = new Scanner(System.in); System.out.print("Enter the string: "); String s = in.nextLine(); System.out.print("Number of words: "); int size = Integer.parseInt(in.nextLine()); int a[] = new int[size]; System.out.println("Enter " + size + " lengths:"); for(int i = 0; i < a.length; i++) a[i] = Integer.parseInt(in.nextLine()); String result = ""; for(int i = 0; i < a.length; i++){ String word = s.substring(0, a[i]); word = reverse(word); result = word + " " + result; s = s.substring(a[i]); } System.out.println(result); } public static String reverse(String w){ String r = ""; for(int i = w.length() - 1; i >= 0; i--) r += w.charAt(i); return r; } }
import java.util.Scanner; class Solve{ public static void main(String[] args){ Scanner in = new Scanner(System.in); System.out.print("Enter the string: "); String s = in.nextLine(); System.out.print("Number of words: "); int size = Integer.parseInt(in.nextLine()); int a[] = new int[size]; System.out.println("Enter " + size + " lengths:"); for(int i = 0; i < a.length; i++) a[i] = Integer.parseInt(in.nextLine()); String result = ""; for(int i = 0; i < a.length; i++){ String word = s.substring(0, a[i]); word = reverse(word); result = word + " " + result; s = s.substring(a[i]); } System.out.println(result); } public static String reverse(String w){ String r = ""; for(int i = w.length() - 1; i >= 0; i--) r += w.charAt(i); return r; } }