You are on page 1of 1

/* * To change this template, choose Tools | Templates * and open the template in the editor.

*/

import java.io.BufferedReader; import java.io.InputStreamReader; /** * * @author JHONSONG */ public class easy1 { public static void main(String args[]){ try{ BufferedReader input = new BufferedReader(new InputStreamReader(Syst em.in)); String str = "%*/+-"; int n; System.out.println("input :"); n=Integer.parseInt(input.readLine()); System.out.println("output:"); for (int i=1; i<=n; i++) System.out.print(str.charAt((i-1)%str.length())); }catch (Exception e){ e.printStackTrace(); } } }

You might also like