Professional Documents
Culture Documents
#includs <String.h>
stuut Data
int main()
Ant n
pid b o peepl:)
Scanf ( /s ol" &n )
8tutt Oata a [n];
os (int i: o; i<n; it+)
Lht max e0
No o peopte: 3
The Detail of a 1
Nomu: Raui
Aqe 31
city Hyduabad
The Detail ok a 2
Nam Abhay
Ag42
city Bihan
Detail a 3
Nama: Sbhin
Aqe32
city Deli
incude <stolio.h
Struct time
int hon
Ant min
chan sta LE1;
guct nain
ne mainl)
int n
int + (" Entv no. of tains: ");
Scan +( /hd án):
Struct troain a [n];
don (int i-0; ich ; i+
ok buain /d:In", Í+1);
puint f ( InÉntn yetails
Tan Namu: ");
n t +( n
gctcheur ();
Scan 47 C^\n]",main
unt +( HH
a[i].namt
time
Scant /. a", Ga [ij. t. h o u )
punt +" MM 0 ain tims: ")i
Scan4("a", Ga [J.t.min)
ind f ( Am| pm");
Stan .s ", 4a li]. t, sta );
3
dou (int i-o; ien ; í++)
Qutpst
Ento No. o Tsains2
Entun Details of Train 1
Yain nam : Rajolhani tzpaus
HH O Train Aum 06
MM O Train tums 35
AM/PMAM
enti Details ok brain a:
THain Nam: Shataboli Expu
lume 10
HH e Tvain
MM o Train um 5 5
AM/PM: PM
int main ()
nt n;
pint +"No. o Students: ");
Scan 4 (.d', &n);
Stxuct stuck s[n];
do ( int i- o,; ikn; i++)
puind("\n Details o stuourt 1- a\n " f+ );
getchan ();
púnt Namt: ");
Scont/:[A\n]", afj. namu );
untt Rstl No ");
Scant ea" s[i]. nsil no)
nt"Mauka og 5 &jects: In )
dor (ink je o; i< 5, jt+)
4[ii,
3
4(Alij,1stal 450o)
4[t).puadlsA
[i.gade B
elu 4 (s (i].tstal e 250)
A[i3.ads =c '
e
4 (.grads
3 (
f1 timp
Output
Details ok Studnt 1
Nam: Rahul
Rsll no 416
Maxs o 5 Subjech
Subj 1: 1D
Subj 21
Suuhj33
Subi 03
Subj 5: 63
Detuils o Studint 2
Namt Ri ck
Rstl no: 55D
Mas o 5 Subjecbs
Sulbj 1:3
Subj a 65
Suby 3 84
Subj 5:3
Details of Student3
NamuGnautam
Masle o 5 Subject
Rsl no 511
Subj. 54
Subj 15
Subj:16
Sub 43
Subi: 8S
**** The souted ited of Sucants in dewuasing odle
total mas * * **
S.no Name Rsl no Tstal maes ouacde
3. Rahd D
46
(
1 includ (Stdlio.h>
# nc luds Sting.h>
Stuct olata
Ant day
Ant mm
Ant
3
Sbuct mple
ant main ()
Ant n
nl+ ("no o empleya: ");
Stan 1-a", &n);
Struet employe e[n]1:
Jon(int i o; ien ; i+t)
ehaire );
,
4 (choice !o
&4choite &5)
1width ( choite)
Case 1:
JoCnbi o; ien; i+)
n( int iai,j <n; j1*)
4 (Amp (e [ij. namt. elfl. nama) >o )
Struet amploy emnp
e[
e( elji;
e[il Imp,
3
pintf"In * *
Sout ***
ed ly Vomu
Shno e,n)i *
In In 7;
oruak
13
Cast
Jo (int i o; ien ,;i u)
sbuet
empoye tmp
e [tj. el;1;
[i);
eLi tomp
euu il (e [(t) olsh.morm =
elil dob mm)
(eti) dst.day) ely]. clsb.olay)
Struct emp loy tomp e
[£1
etje (f1
elji tum
13
14
Bisth: ***\n\n2|
By Dat of
untt( \n ***** Soveted
shno (e, n );
a
Cast 3
e(int i -o; ien ;i+4)
etj elj];
eli ttmp
3
3
e fij e lj1
l ] mp
bhna (e,n) ;
huak,
**** \n");
pint+(In
****
xTED SUccE Ss FULLY
buak
eu
In ** *
gnualid choice
*4
\n ln ");
pundt
bua
utwn 00
No.
Oudpk
o Emplayae 2
Details of Employu
Nam Prabin kuma
Dab of Rieth
DoB) :
Day: 1
Mamth No:8
yea: 191
Dat of Tining (dos) :
Day: 9
Manth: 55
e a 1995
Sala 5 0DD
Details o Employue : 2
1.SDttuy
3.
Name
Sot y DoB
3. Sovct
ly Da
4. Sot
uy, Salany
. Exit
Chaice: 1
******** Sot ed ly Namu * * ****
Nam:Pnabun kuma
Dafl of Bith: 14| 8| 1971
Dat e
oining: a|5 |1915
Salasy : 5ODD
Nami: Riya hoai
Datu ej Binth : 2 5 |1917
Datu et joining: 817 |301
Salauy 2560D
* Entur yon chsice * * *
. Sort y Nam
a. Sout
y DoB
3. Sowt
.
luy D
Sd ly Salau
6. Eu
Chsice:2
A**** * * * Soutecl uy Date of Biuth ******
Nam Babir kuman
Data o Biuth : 14 |s |197
Dat ol zoining:95|191s
S alaxy : 5000
Ant 1,
ant mat [o][io];
3
Void input ( Struct Mabuin *)
Void shno (Struet Maix ;
void Computu (struct matrix, stuttmayin, struet mahix "
nt maun ()
Compude m, , m, m,); ,
Shso (ms)
3
utuwn
3
matrin* m)
Vond tnput ( stu ct
pntt"eemend
Stan
a[ d(7a]:, i.j )i
4( Yd, &m ->mad [] t{));
m3 ml L;
n 3-7 = m2.C;
fo int i- o; íem3
a;itt) (A
do (int f- O; <mi C;
j+4))
m mat (i JG] -0;
dox (nt k co;k<ml .(;k44)
m3-ma [T] (i]+ =m1 m a t J[L] m2.mad ]C/1
print 4 n ");
don (int i0; /cm:C J**)
printt (*a", m,mat [] CG] 7;i
Matux Elements3
tlemund a b] [o): 3
3
Elmunt a () C1j:
tlemen a C](o].3
Elmunt a t1 [) :3
hemalrix alt Mulipuitaton
12 12
12
int a
(5o] (so)
Ant n
Pnd+(" Entvr oudvi og magit mabu'x (oded)");
Stan4(d', &n);
pin 4" In");
nte(n+1) |2,
on nk *:
l, n< =n ; nt4)
Jon (ink y ;9len;y4+)
a (] lyJ:0;
Ank i, y
do (i1 ;i<entn);it+)
a l) lel: i
ee
j+2
( = = n42)
4 (4 =n +1)
A=1
a Cji C 19:i;
e+
Ci--o)
n
4(=n+
A1;
int C
0 ke'an;
(unk X:l; n xHi4)
i4)
dor
don(in y l; 4<enjy+)
whiu (z7o)
Ct1
print+(\n In ");
C O
uiurn0:
Oulput
Entr the idr og magit matrix (odd) 5
4 O1 0S 15
14 16
33 05 0
06 13 20 22
12 19 21 03
18 25 0a 01