Join Regular Classroom : Visit ClassroomTech

Capgemini Pseudocode Solved | Set 1 – codewindow.in

#include<stdio.h>
int main()
{
long double a;
long double b;
int arr[sizeof(!a+b)];
printf(“%d”,sizeof(arr));
}
READ x =4, y = 0;
READ z;
z = (y++, y);
WRITE z
READ ch value between 1 & 2
switch(ch, ch+1)
case 1 :
WRITE “1”
break;
case 2 :
WRITE “2”
break;
default :
WRITE “3”
FUNCTION fun1(INPUT num)
{
static int a =0;IF
(num>0) a=a+1;
fun1(num/10);
ELSE
return a;
END FUNCTION
read the value of n
set m=1,t=0
if m >= n
go to line 9

else
t=t+m
m+=1
go to line 3
display T
stop
READ n=2
FUNCTION fun(int n)
IF(n == 4)
return n;
ELSE
return 2*fun(n+1);
int i=5, j=7; if
( i+j> 5)
j = i+2; if
( j<5 )
print(i)
else
print(j)

else
print(i+1)
READ INTEGER j=41, k= 37
j=j+1
k=k-1
j=j/k
k=k/j
print(k,j)
#include<stdio.h> using
namespace std;int main()
{
int a =0,b=1,c=2;
*( ( a+1==1) ? &b : &a)= a? b : c;
printf(“%d, %d, %d \n”, a , b, c );
return 0;
}
READ s1,e1
FUNCTION num(INT
s1,INT e1)IF(s1==e1)
RETURN
s1ELSE
RETURN
s1+num(s1+1,e1) ENDIF
END FUNCTION
world=181
FUNCTION hello(int world)
INITIALIZE integer zero=0, integer remindme WHILE
world <>0
remindme=world%10;
zero=zero*10+remindme
hello(world/10)
ENDWHILE
WRITE zero

ENDFUNCTION
number = 122,567,789,543,536,999
Sum = 0
Counter = 0
Average = 0
Input(number)
While number <> 999
	Sum = sum+number
	Counter = counter+1
	Input(number)
Endwhile Average = sum/ counter
Output('The average of the number is', average:6:2)
Set x to 1 Set
y to 1
while(x<20)
write "x"
x=x+5
y=y+5
End while
n1=9,n2=322,n3=798,n4=789,n5=987 READ
n1,n2,n3,n4,n5
SET avg to (n1+n2+n3+n4+n5)/5
If(n1<n2)
SET max to n2
Else
SET max to n1
If(n3>max)
SET max to n3
If(n4>max)
SET max to n4
If(n5>max)

SET max to n5
Write max
If(n1>n2)
SET min to n2
Else
SET min to n1
If(n3<min)
SET min to n3
If(n4<min)
SET min to n4
If(n5<min)
SET min to n5
Write min If(max<min)
Write max
Else
Write min
While<><>7

WRITE “HEY”
End While

Also Checkout

Recent Posts
Categories
Pages