Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
yoann-darche
RetroBasicCode
Repository navigation
Code
Pull requests
Actions
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
RetroBasicCode
/
CCRESIST.BAS
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
32 lines (32 loc) · 1.33 KB
master
Breadcrumbs
RetroBasicCode
/
CCRESIST.BAS
Copy path
Top
File metadata and controls
Code
Blame
32 lines (32 loc) · 1.33 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
1000 SCREEN 2:SCREEN 0:CLS:COLOR 13,1
1010 PRINT :LOCATE ,8:PRINT " C A L C U L E D E V A L E U R D E R E S I S T A N C E "
1020 COLOR 13,0:PRINT :PRINT "VOUS ENTREREZ DANS L'ORDRE ET AVEC DES VIRGULES LES COULEURS DES ANNEAUX. LORSQU'IL N'Y EN A PAS INCRIRE UN TIRET (-)"
1030 INPUT "Entrez vos couleurs ",C$(1),C$(2),C$(3),C$(4)
1040 LOCATE 14,36:FOR I=1 TO 4
1041 H=0:T=0:V=0:V$=LEFT$(C$(I),3):IF LEN(C$)= 1 THEN V(I)=0
1042 IF V$="NOI" THEN V=0:T=20:COLOR 0
1043 IF V$="MAR" THEN V=1:T=1:COLOR 6
1044 IF V$="ROU" THEN V=2:T=2:COLOR 12
1045 IF V$="ORA" THEN V=3:COLOR 6
1046 IF V$="JAU" THEN V=4:COLOR 14
1047 IF V$="VER" THEN V=5:T=5:COLOR 10
1048 IF V$="BLE" THEN V=6:COLOR 9
1049 IF V$="VIO" THEN V=7:COLOR 13
1050 IF V$="GRI" THEN V=8:H=.01:COLOR 8
1051 IF V$="BLA" THEN V=9:H=.01:COLOR 15
1052 IF V$="ARG" THEN T=10:V=0:H=0:COLOR 31
1053 IF V$="OR" THEN T=5:V=0:H=0:COLOR 30
1054 IF I=4 THEN PRINT " ";
1055 PRINT "ÛÛ";
1056 IF I=4 THEN T1=T
1057 IF I=1 OR I=2 THEN V1$=V1$+STR$(V)
1058 IF I=3 THEN IF H=0 THEN V1=10^V ELSE V1=H
1059 NEXT
1060 VT#=VAL(V1$)*V1
1070 COLOR 14:LOCATE 12,35:PRINT VT#;"ê"
1071 LOCATE 13,35:PRINT " TOLERANCE";T1;"%"
1072 LOCATE 16,25:FOR I=1 TO 4:PRINT C$(I);",";:NEXT
1073 COLOR 12:PRINT :PRINT " ESC fin ,une touche pour recommencer .... "
1074 A$=INPUT$(1):IF A$=CHR$(27) THEN CLS:COLOR 13:END
1075 RUN
You can’t perform that action at this time.