Sevgili arkadaslar benim C++ odevim var ve yapamazsam dersten kalıp okul 1 sene uzayacak. Ben hic anlamiyorum bu C den yardimci olursanız cok sevinirim.
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.
__________________
Cok acil yardim edin lutfen!!!!
Android & IOS Uygulama Geliştirme0 Mesaj
●30 Görüntüleme
- ReadBull.net
- Programlama ve Yazılım
- Android & IOS Uygulama Geliştirme
- Cok acil yardim edin lutfen!!!!