क्रम से चलने वाले निर्देशों का समूह.
वर्कस्पेस
Fortran
Fortran को शून्य से सीखने का व्यावहारिक रास्ता
पहले परिभाषा
Fortran क्या है
Fortran सटीक निर्देश लिखने की भाषा है. यहां इसे Fortran को शून्य से सीखने का व्यावहारिक रास्ता की तरह सीखें. मूल बात: input कदमों से गुजरकर output बनता है.
main.f90चलाएं gfortran main.f90 && ./a.outआदत Fortran का छोटा हिस्सा सीखें, minimal example टाइप करें और चलाएंvalue data है. variable उस data का नाम है.
नाम वाला छोटा काम जो input लेकर result देता है.
gfortran main.f90 का code चलाता है.
पहला पढ़ने योग्य कोड
program output
entry point output syntax printprint *, 42
आउटपुट 42भाषा वंश
Fortran का परिवार
Fortran कहां से आया, कौन सी भाषाएं करीब हैं, और आगे क्या सीखना है.
शून्य से
Question bank
पहले खोजें फिर अभ्यास करें
चरण चुनें या इस भाषा के अभ्यास खोजें और सीधे सवाल खोलें.
Fortran प्रश्न 1
Fortran प्रश्न 1. value print करना से सबसे मिलती बात चुनें.
Fortran प्रश्न 2
Fortran प्रश्न 2. value को नाम देना से सबसे मिलती बात चुनें.
Fortran प्रश्न 3
Fortran प्रश्न 3. दोबारा इस्तेमाल होने वाला function से सबसे मिलती बात चुनें.
Fortran प्रश्न 4
Fortran प्रश्न 4. basic collection से सबसे मिलती बात चुनें.
Fortran प्रश्न 5
Fortran प्रश्न 5. value print करना से सबसे मिलती बात चुनें.
Fortran प्रश्न 6
Fortran प्रश्न 6. value को नाम देना से सबसे मिलती बात चुनें.
Fortran प्रश्न 7
Fortran प्रश्न 7. दोबारा इस्तेमाल होने वाला function से सबसे मिलती बात चुनें.
Fortran प्रश्न 8
Fortran प्रश्न 8. basic collection से सबसे मिलती बात चुनें.
Fortran प्रश्न 9
Fortran प्रश्न 9. value print करना से सबसे मिलती बात चुनें.
Fortran प्रश्न 10
Fortran प्रश्न 10. value को नाम देना से सबसे मिलती बात चुनें.
Fortran प्रश्न 11
Fortran प्रश्न 11. दोबारा इस्तेमाल होने वाला function से सबसे मिलती बात चुनें.
Fortran प्रश्न 12
Fortran प्रश्न 12. basic collection से सबसे मिलती बात चुनें.
Fortran प्रश्न 13
Fortran प्रश्न 13. value print करना से सबसे मिलती बात चुनें.
Fortran प्रश्न 14
Fortran प्रश्न 14. value को नाम देना से सबसे मिलती बात चुनें.
Fortran प्रश्न 15
Fortran प्रश्न 15. दोबारा इस्तेमाल होने वाला function से सबसे मिलती बात चुनें.
Fortran प्रश्न 16
Fortran प्रश्न 16. basic collection से सबसे मिलती बात चुनें.
Fortran प्रश्न 17
Fortran प्रश्न 17. value print करना से सबसे मिलती बात चुनें.
Fortran प्रश्न 18
Fortran प्रश्न 18. value को नाम देना से सबसे मिलती बात चुनें.
बहुविकल्प
Fortran प्रश्न 1
Fortran प्रश्न 1. value print करना से सबसे मिलती बात चुनें.
print *, 42
संदर्भ
main.f90 के pattern
gfortran main.f90 && ./a.outentry point output syntax print
program output
print *, 42
- Run the smallest file first
- Print one known value
- Check the output before adding more code
variables assignment types integer
values और names
integer :: total total = 42 print *, total
- Give values readable names
- Keep one idea per line while learning
- Trace the value before changing it
function collection Array
functions और collections
integer function add(a, b) integer, intent(in) :: a, b add = a + b end function integer :: scores(2) = (/40, 2/) print *, size(scores)
- Keep functions small
- Return useful values
- Use the common collection before reaching for frameworks