• Breaking News

    Monday, November 25, 2019

    Struggling to learn how to design a software 3D engine from scratch learn programming

    Struggling to learn how to design a software 3D engine from scratch learn programming


    Struggling to learn how to design a software 3D engine from scratch

    Posted: 24 Nov 2019 07:26 AM PST

    Good morning, everyone,

    Last year, I tried to learn how to make my own 3D engine, using software rendering (no DirectX, OpenGL, Vulkan, etc.).

    I read the code of the picocam (https://github.com/josefnpat/picocam) and a 3D engine made by a demoscener (https://josh83.pagesperso-orange.fr/demoz/3dengeng.htm), hoping to better understand if I started small.

    Unfortunately, it didn't help me understand the logic behind it.

    I would like to know if someone had the same idea, and can guide me to a good book, tutorial, or something else, that explains the logic behind the realization of a 3D engine well enough, so that I can create my own.

    Best regards.

    submitted by /u/ActiveUnit
    [link] [comments]

    Is This Code Clean?

    Posted: 24 Nov 2019 08:18 AM PST

    I took on a programing problem and attempted to write a solution for it in C++ as clean as i could. Are there some changes i should make?

    Here is the code

    #include <iostream> #include <vector> #include <string> using namespace std; void takeInputsToVector(int n, vector<int>* vec); int sumVector(vector<int> vec); int main() { vector<int> a, b; int holder; takeInputsToVector(3, &a); takeInputsToVector(3, &b); string str = sumVector(a) > sumVector(b) ? "Anne" : "Berit"; cout << str << endl; return 0; } void takeInputsToVector(int n, vector<int>* vec) { int holder; for (int i = 0; i < n; i++) { cin >> holder; vec->push_back(holder); } } int sumVector(vector<int> vec) { int sum = 0; for (auto i : vec) { sum += i; } return sum; } 
    submitted by /u/petmil123
    [link] [comments]

    Programming jobs and degrees

    Posted: 24 Nov 2019 05:41 PM PST

    So im in school to learn programming so i can get a degree but most of the stuff im learning ive already learned and the classes are the most boring thing ever

    Do i need a degree in programming to get a normal job in the field?

    submitted by /u/Lastinspace
    [link] [comments]

    Experienced in C++. What is the best book to learn C#?

    Posted: 24 Nov 2019 05:11 PM PST

    Also explain why you think it is the best book. Thank you.

    submitted by /u/Relrik
    [link] [comments]

    Issue with JSON "[object Object]"

    Posted: 24 Nov 2019 09:46 PM PST

    I am attempting to grab some data from youtube and feed it to a bot. The data from youtube, when printed to console appears as

    {"x":" [ { id: 'KRaWnd3LJfs', link: 'https://www.youtube.com/watch?v=KRaWnd3LJfs', kind: 'youtube#video', publishedAt: '2012-05-11T00:00:08.000Z', channelId: 'UCN1hnUccO4FD5WfM7ithXaw', channelTitle: 'Maroon5VEVO', title: 'Maroon 5 - Payphone ft. Wiz Khalifa (Explicit) (Official Music Video)', description: 'Music video by Maroon 5 performing Payphone (Explicit) feat. Wiz Khalifa. © 2012 A&M/Octone Records' } ] "} 

    however when I then try to do something along the lines of console.log(x.link) or try to use anything relating to the values of x, instead l get undefined, because x has magically changed into {"x":"[object Object]"}

    How can I get the values out of x?

    submitted by /u/MeMyselfAndI24
    [link] [comments]

    How can I get an SFTP response?

    Posted: 24 Nov 2019 07:43 PM PST

    After sending a file through sftp to the server, how do I implement the response? The response files are contained within a JER/Response/ folder in the server? What would be the standard procedure for displaying the response files? The response files have an XSD format. Do I just display the response XML in a textbox? Also how can I download the files from the response folder over the sftp? Can someone provide a sample code to work from? Here is my code

     Dim result As DialogResult = OpenFileDialog.ShowDialog() ' Test result. If result = Windows.Forms.DialogResult.OK Then ' Get the file name. Dim uploadFile As String = OpenFileDialog.FileName Dim FileInfo As New FileInfo(uploadFile) Try Dim host As String = "gif.com" Dim port As Integer = "4848" Dim username As String = "user" Dim Password As String = "12345678" Dim destinationPath As String = "/JER/Declaration/" Dim keyfile As PrivateKeyFile = New PrivateKeyFile(loadKey) Dim keyFiles = {keyfile} Dim method = New List(Of AuthenticationMethod)() method.Add(New PrivateKeyAuthenticationMethod(username, keyFiles)) Dim connection As ConnectionInfo = New ConnectionInfo(host, port, username, method.ToArray()) Using client = New SftpClient(connection) client.Connect() If client.IsConnected Then MessageBox.Show("Connecting to server ...... ", "Wait", MessageBoxButtons.OK, MessageBoxIcon.Information) client.ChangeDirectory(destinationPath) Using fileStream As New FileStream(uploadFile, FileMode.Open) client.BufferSize = 4 * 1024 client.UploadFile(fileStream, Path.GetFileName(uploadFile)) MessageBox.Show("Successfully Upload File", "Complete Upload File", MessageBoxButtons.OK, MessageBoxIcon.Information) End Using Else MessageBox.Show("Cannot connect to server", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error) End If client.Disconnect() End Using Catch ex As Exception ' Report an error. MessageBox.Show(ex.Message) End Try End If 
    submitted by /u/sawatdeeman
    [link] [comments]

    Help Transitioning: Bioinformatics to CS (data science)

    Posted: 24 Nov 2019 07:29 PM PST

    Hi all, I'd like some advice.

    So I graduated in May with a bachelors in Bioinformatics. The biggest annoyance I had with my major was that the curriculum was structured akin to being mostly a Biology major, with a CS minor. So I was taking a lot of pre-med classes, which I've hated. I realize now that I don't want to pursue a career in this field, mainly because all the bioinformatics jobs in my area require minimum a masters, and the pay doesn't seem worth the time and effort to go into grad school.

    I'm interested in pursuing more of the CS side, leaning slightly towards data science, as I believe there might be transferable skills. Can anyone give me advice on what I should brush up on? A lot of my programming coursework focused mostly on shell scripting and some procedural programming in Perl w/ UNIX systems, doing some light OOP with bioinformatics toolkits, and data modeling and analysis with SQL and R.

    I feel that I should probably go learn about data structures and algorithms, a course that was sorely not included in my major. Any resources on how to learn about that? Also any advice on beginner projects for a portfolio? Thanks.

    submitted by /u/kh467
    [link] [comments]

    C Language: strcpy() in a specific memory address returns value plus garbage

    Posted: 24 Nov 2019 08:44 PM PST

    Hi guys! I`ve been struggling with this for a while and i dont know where im fucking it up.

    I'm required to save data, which happens to be a char array of 4096 characters tops, in a specified memory address.

    So here i get the memory address from a uint32_t into the void* ptrAddress

    uint32_t number = 1268; void* ptrAddress = &number; 

    Having that, i try doing this:

    char tryArray[4096]; for(int i = 0; i < 4095; i++ ){ tryArray[i] = 'A'; } //EDIT: added the null terminator bc i forgot it tryArray[4095] = '\0'; char* copy = strcpy(ptrAddress, (char*)tryArray); printf("lets see: %s\n", copy); 

    The output is mostly right! But i get a bunch of garbage in the middle of it for some reason, and after it finishes, undefined behaviour

    Output (imagine 4096 As and 'garbage' as some garbage character ):

    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'garbage''garbage''garbage'AAAAAAAAAAAAAAAAAAAAAAA 

    Any ideas what it could be? Sorry if i made a huge mistake, and thanks in advance :D

    submitted by /u/zaphry20100
    [link] [comments]

    [C++] This program is supposed to output a list of candidates in an election and then say "And the winner is: canName " w/ canName being the person with the most votes. All output is expected EXCEPT that it puts the last candidate as the winner no matter what. Yes I do know about "using namespaces"

    Posted: 24 Nov 2019 10:01 PM PST

    #include <iostream> #include <string> #include <iomanip> using namespace std; int findWinner (int votes[]); void printResults (string candidates[], int votes[]); double calculatePercentage (int votes[], int vote); // number of candidates is set as a constant int value to make it easier to change if needed in the future const int NUMBER_OF_CANDIDATES = 5; int main () { string candidates[NUMBER_OF_CANDIDATES]; int votes[NUMBER_OF_CANDIDATES]; cout << "Please type the LAST name of the candidates, press the spacebar, then type the number of votes each candidate recieved Ex. McLovin 5280: " ; for (int i = 0; i < NUMBER_OF_CANDIDATES; i++) { cin >> candidates[i] >> votes[i]; } printResults (candidates, votes); cout << "And the winner is: " << candidates[findWinner (votes)] << endl; return 0; } // calculates the percentage of the total votes each candidate received double calculatePercentage (int votes[], int vote) { int sumOfVotes = 0; for (int i = 0; i < NUMBER_OF_CANDIDATES; i++) { sumOfVotes += votes[i]; } double percentage = static_cast<double>(vote) / sumOfVotes; return percentage * 100; } void printResults (string candidates[], int votes[]) { cout << "Name:" << setw (15) << "Votes:" << setw (15) << "Percentage:" << endl; for (int i = 0; i < NUMBER_OF_CANDIDATES; i++) { cout << candidates[i] << setw (15) << votes[i] << setw (15); int percentage = calculatePercentage (votes, votes[i]); cout << percentage << "%" << endl; } } int findWinner (int votes[]) { int winner = 0; for (int i = 0; i < NUMBER_OF_CANDIDATES; i++) { if (votes[i] > winner) winner = i; } return winner; } 
    submitted by /u/vwguy1
    [link] [comments]

    Experienced programmer wanting to learn a new language... Not sure which!

    Posted: 24 Nov 2019 05:52 PM PST

    Hi, everyone. As the title says: I'm a programmer with 9 years of experience. I'm focused on front-end developer but I also work with back-end (using Ruby On Rails).

    I'm seeing that the job offers for RoR programmers are more and more scarce so I was thinking about learning Java or Kotlin, but I'm not sure which one I should focus first. I want to learn a language/framework that is stable, battle-tested and it will continue to be used for years from now on and not something that was created 1 year ago.

    I'm afraid that Java is declining in popularity. On the other hand, Kotlin is quite new and not that popular for web development.

    What's your advice?

    Thank you!

    submitted by /u/king_lebowski
    [link] [comments]

    Start point to work on a plagiarism detection tool

    Posted: 24 Nov 2019 11:17 PM PST

    I am trying to develop an assignment submission portal accompanied with plagiarism detection as my final year project for my bachelors. It is a web-based system. Content needs to be checked for plagiarism with other submissions and also from internet. I have a year to complete this project.

    The problem is my programming skills are very low. I am not confident in my developing skills at all. But I am ready to dedicate my time and energy to learn everything to work on this project for this year. Therefore I want to know where should I start to work on. At what programming languages should I focus on more. What are the resources I should refer to. I did some google searches and results came up of that, the plagiarism part can be done with python. What do you guys think about and what is your advice on this? Would love to get some advice from you guys.

    submitted by /u/RishiyaDissa
    [link] [comments]

    Getting this error when running "7) convert AVATAR" on DeepFaceLab. Any advice?

    Posted: 24 Nov 2019 10:24 PM PST

    Need help. This image is what pops up when I run this program.

    https://imgur.com/a/Rm69Btk

    submitted by /u/Samr915
    [link] [comments]

    Looking for a recently posted Self-Paced Computer Science GitHub curriculum

    Posted: 24 Nov 2019 04:51 PM PST

    I came across a post that contained a GitHub link to a self-paced comp sci curriculum spanning about 8 semesters or so. It was only the other day either before or on the weekend, but searching for it now I can't seem to find it. I'm subbed to a few different programming/comp sci subreddits and feel like I've done a thorough search of them all but haven't been able to find what the one I came across the other day.

    submitted by /u/jakeeem
    [link] [comments]

    Data engineering boot camps?

    Posted: 24 Nov 2019 03:29 PM PST

    Does anyone know of any data engineering boot camps? Is there such a thing? Like how to use python or java to build data pipelines. Or something similar in the field of data engineering. I don't really know where to start learning python, I am looking for something a bit strenuous. Any advice would be appreciated, thanks.

    submitted by /u/OnceInABlueMoment
    [link] [comments]

    Finding Special characters in a String(Java)

    Posted: 24 Nov 2019 11:59 PM PST

    I'm looking for a way to return true or false if my String has any special characters of my choosing. I've been thinking about it and can't figure out a way to do so. The code should be like this:

    private boolean checkForCharacters(String p)

    {

    if (my string has the special characters)

    {return true;}

    return false;

    }

    Thanks in advance

    submitted by /u/mrFarzt
    [link] [comments]

    I need help with a comprehensive resource on writing shell scripts - especially use of flags

    Posted: 24 Nov 2019 07:50 PM PST

    I googled etc and have yet to come across a comprehensive useful resource.

    submitted by /u/313982193819031
    [link] [comments]

    Better Implementation Of Converting Values to ArrayList

    Posted: 24 Nov 2019 11:32 PM PST

    A friend and I were going back and forth on which is a better implementation of a certain java method. I'd like to know which block of code is better than the other (i.e. efficiency or readability). For the sake of simplification, I removed some details in the code.

    Version 1:

    ArrayList<String> valuesToList(Map<String, String> source) { ArrayList<Integer> values = new ArrayList<>(); for (Integer val: source.values()) { values.add(val); } Collections.sort(values); return values; } 

    vs.

    Version 2:

    ArrayList<String> valuesToList(Map<String, String> source) { ArrayList<Integer> values = new ArrayList<>(source.values()); Collections.sort(values); return values; } 

    I believe that version 2 is better, since ArrayList does not need to resize if source.values() is larger than 10 (default capacity). If so, how do I explain to my friend in such a way that they will adopt Version 2?

    submitted by /u/Feguette
    [link] [comments]

    C# Calculator and classes (calculation problems)

    Posted: 24 Nov 2019 07:43 PM PST

    Any idea what's wrong? The calculator returns 0 anytime division/multiplication are used from the calculator class, and addition/subtraction methods aren't using the second number (4+5 returns 4)

    https://hastebin.com/uvutufifip.cs

    submitted by /u/Buddy763541
    [link] [comments]

    [python]Need help with crossword puzzle

    Posted: 24 Nov 2019 03:47 PM PST

    In our class, we have to make a program that takes in a list of words and based on the words, creates a crossword. This is the assignment instructions: [instructions](https://pdfhost.io/v/Sqm7L+zN_a2pdf.pdf)

    This is my code so far: [code](https://pastebin.com/Qx40N8Mz)

    I'm just having trouble on how to make sure it only prints words "legally". Any help is appreciated, Thank you!

    submitted by /u/EmotionalButterfly
    [link] [comments]

    Is there any complete tutorial that teach Android Architecture Component in Kotlin?

    Posted: 24 Nov 2019 05:13 PM PST

    I'm looking for a tutorial that teach proper step that create an android application by using Android Architecture Component in Kotlin.

    The course should cover LiveData, Room, Dao and etc.

    submitted by /u/iTyris
    [link] [comments]

    How to end a do while loop without a break statement.

    Posted: 24 Nov 2019 08:25 AM PST

    I am having trouble figuring out how to ask if the user wants to grade another quiz without a break statement. This is my code.

    import java.util.Scanner;

    import java.text.NumberFormat;

    public class Quizzes {

    public static void main(String[] args) { int numQuestions; int numCorrect; String anotherQuiz; int answer; NumberFormat percent = NumberFormat.getPercentInstance();

     Scanner scan = new Scanner(System.in); System.out.println("Quiz Grading"); System.out.println(); do { System.out.print("Enter the number of questions on the quiz: "); numQuestions = scan.nextInt(); // CREATE THE ARRAY FOR THE KEY int[] key = new int[numQuestions]; // LOAD THE ARRAY WITH INPUT FROM THE USER System.out.print("Enter the answer key: \n"); for (int i = 0; i < numQuestions; i++) { System.out .print("Enter the key for Question " + (i + 1) + ": "); key[i] = scan.nextInt(); } // OUTER LOOP TO ALLOW THE USER TO ENTER GRADES FOR ANY NUMBER OF // QUIZZES System.out.print("Enter the student answers:\n "); // LOOP TO GET ANSWERS FROM THE USER AND COUNT THE NUMBER OF // CORRECT ANSWERS numCorrect = 0; for (int i = 0; i < numQuestions; i++) { System.out.print("Enter the Answer for Question " + (i + 1) + ": "); answer = scan.nextInt(); if (answer == key[i]) { numCorrect++; } } // DISPLAY THE NUMBER OF CORRECT ANSWERS AND PERCENT System.out.println("Number of Correct Answers :" + numCorrect); System.out.printf("Percent correct :%.2f\n", ((float) numCorrect / (float) numQuestions) * 100.0); // ASK USER IF THEY WISH TO GRADE ANOTHER QUIZ System.out.print("Grade another quiz? (y/n):"); anotherQuiz = scan.next(); } while (anotherQuiz!=("y")) 

    }

    }

    submitted by /u/Infamous_Cabinet
    [link] [comments]

    What did people who got a job in software development or programming by only teaching themselves do differently compared to people who never get a job despite trying to teach themselves?

    Posted: 24 Nov 2019 11:05 PM PST

    It seems like many people want to get a job programming without going to college or getting a formal training, but few achieve that goal. What separates self-taught programmers who get a job from those who can't get a job/never become good enough to get one?

    submitted by /u/dstol123
    [link] [comments]

    Need help to create a few functions in JavaScript.

    Posted: 24 Nov 2019 07:03 PM PST

    So, my sister needs help to solve this JavaScript challenge:

    Create the functions:

    "haveTheSameMum" who has two children by parameter and will return "true" or "false" if they really share the same mum. Knowing this you can use the function we gave you "mumOf"

    mumOf(dylanPenn) "Robin Weight"

    "haveTheSameDad" which like the first, takes two kids by parameter and returns true or false if they share the same father. Knowing this you can use the function we have you "dadOf".

    dadOf(dylanPenn) "Sean Penn"

    And "areHalfSiblings", which receiving two kids by parameter, tell us if they're really half siblings. You have to use the two previous functions here. Remember that half siblings are those who share the same mum but NOT the same dad or vice-versa - well, if they shared the same mum and the same dad they'd be full siblings!

    I'm translating all of this from Portuguese so I hope it's clear enough, I'm also completely clueless about programming so if something "technical" isn't clear I'd be happy to correct it, also if this is not the right sub to ask this question, I'm sorry and I'd appreciate if you guys could point me to the right sub!

    Thank you in advance.

    submitted by /u/cenomestdejautilise
    [link] [comments]

    Can Anyone See Where I'm Going Wrong in MIPS?

    Posted: 24 Nov 2019 10:46 PM PST

    I'm having a lot of trouble converting a program on amicable numbers I wrote in C into MIPs assembly language. I have gotten it to take in the input from the user, and catch errors, but if the numbers are entered correctly nothing happens. I've been having a hard time catching any mistakes as is this is the first time I've written in an assembly language. I'm assuming the issue is within my amicable_loop. Here is what I have so far: `# Program to calculate amicable numbers within a given range .text main:

    --------------------------------------------------------------------------------

    #for start li $v0, 4 #print string syscall la $a0, start_msg #loads addr of message into $a0 syscall #reads in start li $v0, 5 #gets start index from user syscall add $s0, $v0, $zero #sets $s0 = start index add $a0, $s0, $zero #check if start < 0 jal error_check #jump to error #for end li $v0, 4 #print string syscall la $a0, end_msg #loads addr of message into $a0 syscall #reads in end li $v0, 5 #gets end index from user syscall add $s1, $v0, $zero #sets $s1 = end index add $a0, $s1, $zero #check if end < 0 jal error_check #jump to error #check if end > start slt $t0, $s1, $s0 #check if end index is less than start index beq $t0, $zero, no_swap li $v0, 4 la $a0, switch_msg #printing swap message syscall #swapping start and end values add $t0, $s0, $zero add $s0, $s1, $zero add $s1, $t0, $zero 

    error_check: #check if start/end <0

    --------------------------------------------------------------------------------

    slti $t0, $a0, 1 bne $t0, $zero, error_true jr $ra 

    error_true: #start/end is less than zero

    --------------------------------------------------------------------------------

    #print error message li $v0, 4 #print string syscall la $a0, err_msg #for error message syscall #print exit message li $v0, 4 la $a0, exit_msg syscall #exit program li $v0, 10 syscall 

    no_swap:

    --------------------------------------------------------------------------------

    add $s3, $s0, $zero #to start loop; i = start index 

    amicable_loop:

    --------------------------------------------------------------------------------

    bgt $s3, $s1, amicable_loop_end #if i <= end index add $a0, $s3, $zero #for i add $a1, $s1, $zero #for end jal isAmicable beq $v0, $zero, not_amicable #if not amicable addi $s2, $s2, 1 #incrementing pairs 

    not_amicable:

    --------------------------------------------------------------------------------

    addi $s3, $s3, 1 #i++ j amicable_loop 

    amicable_loop_end:

    --------------------------------------------------------------------------------

    # print range li $v0, 4 la $a0, range syscall #print start add $a0, $s0, $zero li $v0, 1 syscall #print minus li $v0, 4 la $a0, minus syscall #print end add $a0, $s1, $zero li $v0, 1 syscall #print enter (\n) li $v0, 4 la $a0, enter syscall #print number of pairs li $v0, 4 la $a0, total syscall #print pairs integer add $a0, $s2, $zero li $v0, 1 syscall #call for exiting li $v0, 10 syscall 

    isFactor:

    find factors of number

    -------------------------------------------------------------------------------

    rem $t5, $a1, $a0 #num % factor beq $t5, $zero, factor_true #branch if factor true add $v0, $zero, $zero jr $ra 

    factor_true:

    -------------------------------------------------------------------------------

    addi $v0, $zero, 1 jr $ra #return false if remainder != 0 

    sumFactors:

    -------------------------------------------------------------------------------

    #$t0 - num, $t1 - result, $t2 - i addi $sp, $sp, -4 #for return sw $ra, 0($sp) addi $sp, $sp, -4 #for num sw $a0, 0($sp) add $t0, $a0, $zero #$t0 = num addi $t1, $zero, 1 #result = 1 addi $t2, $zero, 2 #i = 2 for loop j sumLoop #might need to delete 

    sumLoop:

    -------------------------------------------------------------------------------

    mul $t3, $t2, $t2 #$t3 = i*i bgt $t3, $t0, sum_exit #i*i <= n #call isfactor add $a0, $t2, $zero #putting i into isFactor add $a1, $t0, $zero #putting num into isFactor jal isFactor addi $t1, $t2, 1 #result+=k div $t3, $t0, $t2 #$t3 = num/i #check if div != k bne $t3, $t2, other_factor addi $t2, $t2, 1 #i++ j sumLoop 

    other_factor:

    -------------------------------------------------------------------------------

    addi $t1, $t3, 1 #result+=div addi $t2, $t2, 1 #i++ j sumLoop 

    sum_exit:

    -------------------------------------------------------------------------------

    jr $ra #return result 

    isAmicable:

    -------------------------------------------------------------------------------

    addi $sp, $sp, -4 sw $ra, 0($sp) #for return addi $sp, $sp, -4 sw $a0, 0($sp) #for num add $a0, $a1, $zero #putting num into sumFactors jal sumFactors add $t0, $v0, $zero beq $t0, $t1, amicable_false jal sumFactors add $t1, $v0, $zero jal sumFactors add $t2, $v0, $zero bne $t2, $t0, amicable_false #if sumfactors(sumfactors(sum)) != sum bne $t1, $a0, amicable_false #sumfactors(sum)!= num1 blt $t1, $a0, amicable_true #sum < num1 j amicable_end #for end 

    amicable_false:

    -------------------------------------------------------------------------------

    #return false add $v0, $zero, $zero 

    amicable_true:

    -------------------------------------------------------------------------------

    #$t1, $a0 are amicable add $t1, $a0, $zero li $v0, 1 #load pair syscall li $v0, 4 la $a0, and_msg #print and syscall add $a0, $a0, $zero li $v0, 1 #load pair syscall li $v0, 4 la $a0, amicable_msg syscall 

    amicable_end:

    -------------------------------------------------------------------------------

    lw $ra, 0($sp) #for return addi $sp, $sp, 4 jr $ra 

    variable names for printing

    .data start_msg: .asciiz "Enter the start of the range:\n" end_msg: .asciiz "Enter the end of the range:\n" switch_msg: .asciiz "End of range < start of range -- swapping values\n" err_msg: .asciiz "Unable to check non-positive values\n Exiting... " swap_msg: .asciiz "End of range < start of range -- swapping values\n" range: .asciiz "Range of numbers: " minus: .asciiz " - " enter: .asciiz "\n" total: .asciiz "Pairs of amicable numbers: " exit_msg: .asciiz "Unable to check non-positive values\n Exiting..." and_msg: .asciiz " and " amicable_msg: .asciiz " are amicable numbers."` 
    submitted by /u/ExtraLongShortPants
    [link] [comments]

    No comments:

    Post a Comment