ich heiße Yannick und bin derzeit in Korea als Austauschstudent, wo ich einen Kurs belege, welcher sich mit dem R Programm beschäftigt.
Hierzu habe ich als Klausurvorbereitung Probleme erhalten, bei denen ich einfach nicht weiter weiß.
1. Generate 100 random numbers and classify these numbers with following rule using for and if. Vector x1 for the numbers which are greater than 1 or less than -1. Vector x2 for otherwise.
2. Print out the following diagrams.
1) Equilateral Triangle (정삼각형)
*
***
*****
*******
....
2) Inversed Equilateral Triangle (역정삼각형)
*******
*****
***
*
3) Diamond (마름모)
*
***
*****
*******
*****
***
*
3. Build funtion pyramid2(x,type) to draw the Equilateral Triangle (type == 0) , Inversed Equilateral Triangle (type == 1), diamond (type == 2). (x: size, length)
Vielen Dank für eure Hilfe!!!!!!!
