forked from Haresh1204/Algorithms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsblock.cpp
More file actions
43 lines (43 loc) · 944 Bytes
/
sblock.cpp
File metadata and controls
43 lines (43 loc) · 944 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
// To find all the details of any s-block element.
#include <iostream>
#include <conio.h>
#include <string.h>
#include <windows.h>
#include <process.h>
using namespace std;
struct element
{
short atomicno;
char name[50];
char ec[50];
short group;
short period;
char block;
float atomicw;
float en;
short atomicr;
char origin[100];
float meltp;
float boilp;
float density;
}
elem[14];
int main()
{
int n, t, a, i;
char name[50], c;
// Displaying introduction.
system("COLOR 8F");
cout << "\n\n\n\n\n\n\n\n\n\n\n\t\tA PROGRAM FOR BEGINNEERS";
Sleep(3000);
system("cls");
for (i = 1; i <= 100; ++i)
{
Sleep(5);
system("cls");
cout << "\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\t\tLOADING " << i << "%";
if (i == 100)
Sleep(1000);
}
system("cls");
}