-
1.
0beyler ş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!
>>
-
2.
0uy kornealarım yandı bu nedir amk
-
3.
0upppppp
-
4.
0nerde okuosun amk ya?
-
5.
0@4 panpa napcan.bi önerin var mı.
-
6.
0olma mi kardes?
-
7.
0@6 acaba nedir nedir
-
8.
0bi kere soru yanlis amk, bu soruyu soran hocayi gibim.
-
9.
0@8 panpa işin içinden çıkamamamın nedeni bu olabilir ama soru doğrudur sanmıyorum.
-
10.
040 yapar. maksat uplansın amk
-
11.
0javayla yap:
System.out. println("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!
>>") -
12.
0@11 javayı bulan adam. güldürdün bin.
-
13.
0@9 panpa bi kere all integer pairs dedigi anda sicarsin cunku kuplerle calisiosun bu demek oluo ki negative her integer n > 0 ise esitsizligi saglar. o yuzden soru bi kere hatali, omur billah bastiramazsin sonsuz tane pairi matlab'de : ) o yuzden ya non-negative integer pair'lar ister ya da direk positive pairstir o. hangisi?
-
14.
0for next isine bi bak derim ben unutmusum da biraz ayrica hic de gibimde degil ugrasamam
-
15.
0biz türkçe gördük lan bu programı bi gibim anlamadım istediği komutlardan
-
16.
0@13 panpa pozitifler. ikisi de 1den başlayacak.
-
17.
0@16 tamamdir panpa simdi yazip gonderiorm .m file.
-
18.
0@17 panpa çok sağolasın. adamın dibisin *
-
19.
0al panpa:
function [ output_args ] = inci( n )
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
a = 1;
b = 1;
while (a^3 + b^3) <= n
while (a^3 + b^3) <= n && b <= a
fprintf('%d %d n', a, b);
b = b + 1;
end
a = a + 1;
b = 1;
end
end -
20.
0@19 panpa harikasın. oldu.seni şuku manyağı yapıcam bundan sonra gördüğüm yerde.