FizzBuzz Problem (फिजबज समस्या)
The FizzBuzz problem is one of the commonly asked questions, here one has to print Fizz and Buzz upon some conditions.
फिजबज समस्या सामान्यतया सोधिने प्रश्नहरू मध्ये एक हो, यहाँ केहि शर्तहरूमा फिज र बज प्रिन्ट गर्नु पर्दछ।
📝 Tasks:
[ ] Write a program to print all the numbers between 1 to 100 in such a way that the following conditions are met.
[ ] १ देखि १०० को बीचमा सबै नम्बरहरू यसरी मुद्रण गर्न एक प्रोग्राम लेख्नुहोस् कि निम्न सर्तहरू पूरा हुन्छन्।
- For multiples of 3, instead of the number, print
Fizz. - ३ को गुणकको लागि, नम्बरको सट्टा,
फिजमुद्रण गर्नुहोस्। - For multiples of 5, print
Buzz. - ५ को गुणकको लागि,
बजमुद्रण गर्नुहोस्। - ३ र ५ दुवैको गुणक भएका नम्बरका लागि
फिजबजप्रिन्ट गर्नुहोस्।
- For multiples of 3, instead of the number, print
/
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16
....
....
98
Fizz
Buzz
/