-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPS1ST1.C
More file actions
47 lines (24 loc) · 726 Bytes
/
PS1ST1.C
File metadata and controls
47 lines (24 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//TITLE: WAP to Create structure of amroli student
#include <stdio.h>
#include <conio.h>
//; DEFINE STRUCTURE FOR AMROLI STUDENT
struct amroli
{
int rno;
char sname[20];
};
void main()
{
struct amroli a1,a2,a3,a4;
printf("\nPlease Enter RNO for Student 1:\n");
scanf("%d",&a1.rno);
printf("\nPlease Enter Name for Student 1:\n");
scanf("%s",a1.sname);
printf("\nPlease Enter RNO for Student 2:\n");
scanf("%d",&a2.rno);
printf("\nPlease Enter Name for Student 2:\n");
scanf("%s",a2.sname);
printf("\nS1 : YOUR NAME IS : %s and your RNO is : %d",a1.sname,a1.rno);
printf("\nS2 : YOUR NAME IS : %s and your RNO is : %d",a2.sname,a2.rno);
getch();
}