반응형 java2 Python, JavaScript, C, C++, and Java Tutor 코드 튜터 https://pythontutor.com/visualize.html#mode=edit Python Tutor code visualizer: Visualize code in Python, JavaScript, C, C++, and Java Please wait ... your code is running (up to 10 seconds) Write code in Python 3.6 C (gcc 9.3, C17 + GNU) C++ (g++ 9.3, C++20 + GNU) Java 8 JavaScript ES6 ------ Python 2.7 [unsupported] Visualize Execution hide exited frames [default] show all frames (Pytho pythont.. 2023. 5. 7. JAVA 자바 입력된 정수 숫자 뒤집기 // 입력된 정수 숫자 뒤짚기package TEST; import java.util.Scanner; public class TEST { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); // 12 입력시 21 출력 int b = (a / 10) + (a % 10) * 10; System.out.println(b); // 123 입력시 321 출력 b = (a / 100) + (((a % 100) / 10) * 10) + ((a % 10) * 100); System.out.println(b); // 1234 입력시 4321 출력 -------------------------더있음.. 2023. 1. 19. 이전 1 다음 반응형