Vous êtes sur la page 1sur 1

1.) write a program to reverse a Line Example Input: welcome to citisys soution. output: solution citrisys to welcome.

Ans: ReverseLine program in zip file 2) Given a string of word with the combination of words number and symbol. write a program to read the number in the string and add it print like below. Example input : ci2t2r1is@y$%s output citrisys5@$% Ans: addstring program in zip file 3)write a program for given logic below step 1: find the unitdigit of the number Example 34246 is 6(unit digit) Step 2: (3*2 + 4*2 + 2*2 + 4*2)/4 = 6 step 3: check unit dight and above condition equals if TRUE print SUCCESS else FAIL Ans: checksum program in zipfile 4)check and remove duplicate in Array (very Easy ANS put the value in Hashset collection) Given array ={1,2,3,4,1,2,3,5,1,2} ouput={1,2,3,4,5} Ans: dupilcatearray program in zipfile 5) given a condition 2^n+1 taake some value of n like n=100 check number beween the condion is prime or not for example 2^0+1=2 is prime 2^1+1=3 is prime 2^2+1=5 is prime 2^3+1=9 is not prime Ans: primecodition program in zip file

Vous aimerez peut-être aussi