forked from crypticani/C_Programs
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathARRAY.C
More file actions
35 lines (33 loc) · 711 Bytes
/
ARRAY.C
File metadata and controls
35 lines (33 loc) · 711 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
#include"stdio.h"
#include"conio.h"
void name();
void num();
main()
{
clrscr();
{
printf("\t\tMarksheet for Internal Exams\n");
name();
num();
return 0;
getch();
}
}
void name()
{
char nam[10];
printf("Enter your name:\n");
scanf("%s",&nam);
printf("\n\nWelcome %s !",nam);
getch();
}
void num()
{
int n[4];
printf("\n\nEnter your marks of C programming in both the internals:\n");
scanf("%2d%2d",&n[0],&n[1]);
printf("\nEnter your marks of Operating System in both the the internals:\n");
scanf("%2d%2d",&n[2],&n[3]);
printf("\nThe marks obtained in your internals are:\n\t\t\tI\tII\nC programming\t\t%d\t%d\nOperating System\t%d\t%d",n[0],n[1],n[2],n[3]);
getch();
}