Professional Documents
Culture Documents
step Staut
step a Read n
"enterrd"
GET d
distance(d, c)
V
MasterConsole
Font Font Size Edit Hetp
alof ema23400
em mboia walat
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
sep top
cess exited after s
1#include<stdio.h> ress anv kev to
EOnOs with return value
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
Errors:
Warnings.
utputlename: C NUsersdeli\bownloads \ alml q4.exe
utput Sze_28.44921575 K15
cmp1lation Time: 0.14