-
Notifications
You must be signed in to change notification settings - Fork 0
/
44-Kullanıcının İstediği Uzunlukta String Şifre Oluşturan Program.fprg
33 lines (33 loc) · 1.89 KB
/
44-Kullanıcının İstediği Uzunlukta String Şifre Oluşturan Program.fprg
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
<?xml version="1.0"?>
<flowgorithm fileversion="3.0">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="husey"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2023-09-10 01:58:39 ÖS"/>
<attribute name="created" value="aHVzZXk7SMWhU0VZSU47MjAyMy0wOS0xMDswMTo0NTo0MyDDllM7Mjc5Mw=="/>
<attribute name="edited" value="aHVzZXk7SMWhU0VZSU47MjAyMy0wOS0xMDswMTo1ODozOSDDllM7MjsyOTEx"/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="harfler" type="String" array="True" size="26"/>
<declare name="i, uzunluk" type="Integer" array="False" size=""/>
<declare name="kelime" type="String" array="False" size=""/>
<assign variable="kelime" expression=""""/>
<output expression=""Ne kadar uzunlukta şifre oluşturmak istersiniz: "" newline="True"/>
<input variable="uzunluk"/>
<for variable="i" start="0" end="25" direction="inc" step="1">
<assign variable="harfler[i]" expression="ToChar(i + 65)"/>
</for>
<for variable="i" start="0" end="uzunluk - 1" direction="inc" step="1">
<assign variable="kelime" expression="kelime & harfler[Random(26)]"/>
</for>
<for variable="i" start="0" end="uzunluk - 1" direction="inc" step="1">
<output expression=""Rastgele şifrenizin Tekil " & i+1 & ". Terimi: " & Char(kelime, i)" newline="True"/>
</for>
<output expression=""Terimin Uzunluğu: " & Len(kelime)" newline="True"/>
<output expression="Len(kelime) & " Uzunluklu şifreniz: " & kelime" newline="True"/>
</body>
</function>
</flowgorithm>