Print all numbers between 1 and N that are divisible by both 3 and 5.
Difficulty: Easy
Phase: 6 · Mixed Logical Challenges
XP Reward: 10 XP
Topics: Mixed Logical Challenges, Easy
Supported Languages: Python, JavaScript, C, C++, Java
Problem Description
Given N, print Butterfly star pattern of 2N rows. Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).
Constraints
- -10^9 <= N <= 10^9
Examples
Example 1
Input: 3
Output: * * ** ** ****** ****** ** ** * *
Explanation: Sample execution for input 3