Join Regular Classroom : Visit ClassroomTech

Capgemini Pseudocode

Capgemini Pseudocode Solved | Set 3 – codewindow.in

Input array elements 1,2,3,4,5,6,7,8 Initialize n as number of elements FUNCTION ch(input num){ INITIALIZE r_num=0, r if(num!=0) r=num%10 r_num=r_num*10+r ch(num/10) ENDIF return r_num ENDFUNCTION FUNCTION main() int num, r_num; READ num equals to 142 r_num = ch(num); if(num==r_num) WRITE ”YES”; else WRITE “NO”; Initialize sum equals 0 i=n-1 Function SUM(array,i,sum) If(i<0) Write sum if((ar[i]%2==1) sum+=(ar[i])

Capgemini Pseudocode Solved | Set 3 – codewindow.in Read More »