Şimdi Ara

c 'de bir problem

Daha Fazla
Bu Konudaki Kullanıcılar: Daha Az
1 Misafir - 1 Masaüstü
5 sn
3
Cevap
0
Favori
797
Tıklama
Daha Fazla
İstatistik
  • Konu İstatistikleri Yükleniyor
0 oy
Öne Çıkar
Sayfa: 1
Giriş
Mesaj
  • selamlar arkadaşlar.Okuldan ödev verdiler ancak daha işlemedik teslim tarihide yarın ; bilen arkadaşların yardımı olur ise sevinirim.. teşekkürler.

    Write a MAIN function and two FUNCTIONS to compute and print the
    elements of a two-dimensional 40X25 integer array A which are square
    numbers.
    A square number is a positive integer that is the square of an integer,
    in other words, it is the product of some integer with itself.
    For example, 25 is a square number since, it can be written as 5*5.

    Within the MAIN function:
    . Declare a two-dimensional 40X25 integer array A and initialize
    it with random numbers between 1 and 100 inclusive.
    . Declare also a one-dimensional integer array B with a reasonable
    size to hold the elements of the array A which are square numbers.
    . Pass the arrays A and B to the FUNCTION1 as arguments and get
    the return value(the size of B, the number of square elements
    of A stored in B) from the FUNCTION1.
    . Pass the array B and the size of B(returned value from the
    FUNCTION1) to the FUNCTION2 as arguments.
    . Print the array B.
    . Print the array B without duplicates (i.e., repeated elements
    will be written only once.
    Within the FUNCTION1:
    . Read array A elements and compute and store the square elements
    of A into the array B.
    . Return the size of the array B(the number of the square elements
    stored in B) to the MAIN function.
    Within the FUNCTION2:
    . Sort the array B elements in ascending order.







  • .



    < Bu mesaj bu kişi tarafından değiştirildi ::cc:: -- 29 Nisan 2011; 3:29:46 >
  • çokk teşekkürlerrrr
  • Yapay Zeka’dan İlgili Konular
    c'de yardım
    13 yıl önce açıldı
    Daha Fazla Göster
    
Sayfa: 1
- x
Bildirim
mesajınız kopyalandı (ctrl+v) yapıştırmak istediğiniz yere yapıştırabilirsiniz.