1. 1.
    0
    beyler şu 2. kısımla ilgili bi fikir vercek panpa çıkarsa çok memnun olurum.

    Write a MATLAB program named h4yourlastname.m that will do the following:

    1. Get a positive integer number n from the user. If n is zero, quit the program. If
    it is less than zero, or non-integer, display a warning message, and ask again.
    2. Find all integer pairs a and b, such that a³+b³ ≤ n and a ≤ b, and display them
    on the screen.
    3. Repeat the same procedure from step 1.

    ekranda şunun çıkması lazım

    Input a positive integer, or 0 to quit: -5
    Please enter a positive integer value.
    Input a positive integer, or 0 to quit: 2.567
    Please enter a positive integer value.
    Input a positive integer, or 0 to quit: 30
    1^3 + 1^3 = 2
    1^3 + 2^3 = 9
    1^3 + 3^3 = 28
    2^3 + 2^3 = 16
    Input a positive integer, or 0 to quit: 100
    1^3 + 1^3 = 2
    1^3 + 2^3 = 9
    1^3 + 3^3 = 28
    1^3 + 4^3 = 65
    2^3 + 2^3 = 16
    2^3 + 3^3 = 35
    2^3 + 4^3 = 72
    3^3 + 3^3 = 54
    3^3 + 4^3 = 91
    Input a positive integer, or 0 to quit: 0
    Okay, goodbye!
    >>
    ···
   tümünü göster