You are on page 1of 7

Algovithm t main)

step Staut

step a Read n

step 3 xes caldist(A)


Hep 1 Piud se
step S. StoP
Algotm aldist ()
Step Stdt
&e3 vM* 2-S
step
step 3 xetum xe3
step 4 StoP
Start

"enterrd"
GET d

distance(d, c)
V
MasterConsole
Font Font Size Edit Hetp
alof ema23400
em mboia walat

PUT "value of cms"+c plets 8ymbela ewaiaat

End
Start (in d, out c)

c-d*2.54

End
swap of reference.cpp

1 #include<stdio.h>
2 void swap(int*a, int"b) ;
3 int main()
4 4
int a,b;
printf("\n enter a,b values")
scanf("%d%d",8a, 8b) ;
printf("n before swapping a=Kd, b=*d", a,b) ;
Swap (8a, 8b) ;
10 printf("In after swapping a=d, b=Xd",a, b);
11L
12 void swap(int a, int"b)
13
14 int temp
15 temp a
16 ab
17 b=temp;
18 printf("\n inside the function a=d, b=xd", *a, *b)
19
h maint)
Al goitm

:ant
steP
fep2 Rend alvabe
tep
Calprod (a)
teP 3

p Pkid ae

StoP
steps
Algox it i clpcod ()
Step : t
tep 2

step 3 Compute f(i=1; ican-l;itt)


( = (a421)?(e*ail:E):

sep top
cess exited after s
1#include<stdio.h> ress anv kev to
EOnOs with return value

2 float average (char v[10]);


3 int main()
46
char v[18]=('a',
floata:
'e','i','o','u', 'A', 'E', 'I, '0','"'}%

a=average (v);
printf(%.2f",a);
return
10
11float average (char v[10])
124
13 float s
14
s=(vlov[1]+v[2]+v[3]+v[4]v[5]+v[6]+v[7]+v[s]+v[9]
S=5/10;
return S
17

db Compile Log Debug Find Resuts Close


mpilaticn results.

Errors:

Warnings.
utputlename: C NUsersdeli\bownloads \ alml q4.exe
utput Sze_28.44921575 K15
cmp1lation Time: 0.14

You might also like