1.
Take a number n, and print the number
2.
Compute n * k when the computer can perform
only addition
3.Compute n3 when a number (n) is given.
4.Compute nk when two numbers (n, k) are give
n.
5.Print all multiples of 2 or 3 between 1 and n
1.
Take a number n, and print the number
2.
Compute n * k when the computer can perform
only addition
3.Compute n3 when a number (n) is given.
4.Compute nk when two numbers (n, k) are give
n.
5.Print all multiples of 2 or 3 between 1 and n
이제 알고리즘을 가지고 와봐
2번은 문제가 이해가 안된다. 3번은 그냥 3 곱하라는거고, 4번은 그냥 숫자 2개 입력받은거 2개 곱하라는거고, 5번은 1에서 입력해준 숫자만큼 반복문 돌려줘서 2랑 3이랑 나머지0인거 조건문주면되지
그러게 이걸 알고리즘이라고 할 수 잇나
n*k를 더하기로만 하래잖아 걍 돌리면 되는거
아 ㅋㅋㅋㅋㅋ n*k를 n을 k번 더해주는걸로 해결하라는건가