If n is greater than m m -= n;
swap m and n. Subtract n from m. }
return n;
n is the GCD }
What is Algorithm?
a clearly specified set of simple instructions to be followed
to solve a problem
Data structures
Methods of organizing data
Program = algorithms + data structures
Write a program that will let the user to key in his/her data for the credit
card application. If the application is successful, a message Tahniah!
Permohonan Anda Berjaya will be displayed at the computer screen and
then the program will write his/her record which consists of the IC_num,
name, Card-type and Credit_limit fields into the fail name Credit.dat. A
message Maaf, permohonan anda tidak berjaya will be displayed if the
application is rejected.