Commit 72880b84 by krkris

Update Kood.c

parent 08aed4eb
Showing with 9 additions and 9 deletions
......@@ -76,8 +76,8 @@ int sisestus(const char tekst[40], char a[16], char b[16], char c[16], char d[16
printf("\nK-kaardi kujul:\n");
printf("%c %c %c %c\n", a[0], a[1], a[3], a[2]);
printf("%c %c %c %c\n", a[4], a[5], a[7], a[6]);
printf("%c %c %c %c\n", a[8], a[9], a[11], a[10]);
printf("%c %c %c %c\n", a[12], a[13], a[15], a[14]);
printf("%c %c %c %c\n", a[8], a[9], a[11], a[10]);
}
else{ // Kui kasutaja sisestab mittesobiva märkide arvu, siis programm teeb exit.
......@@ -137,15 +137,15 @@ void info(char a[16], char b[16], char c[16], char d[16]){
f6 = b[3];
f7 = b[2];
f8 = c[0];
f9 = c[1];
fA = c[3];
fB = c[2];
f8 = d[0];
f9 = d[1];
fA = d[3];
fB = d[2];
fC = d[0];
fD = d[1];
fE = d[3];
fF = d[2];
fC = c[0];
fD = c[1];
fE = c[3];
fF = c[2];
}
if (f0 == '1'){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment