Startup and Tech
Wednesday 22 July 2020
Codeforces 339A - Helpful Maths Problem Solution In Java
Program
import java.util.*; public class x { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.next(); char ch[] = s.toCharArray(); char temp = '\0'; for(int i=0;i
(int)ch[j]) { temp = ch[i]; ch[i] = ch[j]; ch[j] = temp; } } } } String s2 = new String(ch); System.out.println(s2); } }
Output
I/P: 3+2+1 O/P: 1+2+3
Codeforces 263A - Beautiful Matrix Problem Solution In Java
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment