We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
using System;
using System.Collections.Generic;
using System.IO;
class Solution {
static void Main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution */
for(int i=1;i<=100;i++)
{
In Python.
(Idk why I got 2 score even though the code got 16 marks from ChatGPT)
number = 0
while number < 100:
number += 1
if (number % 3 == 0) and (number % 5 == 0):
print("FizzBuzz")
elif (number % 3) == 0:
print("Fizz")
elif (number % 5 == 0):
print("Buzz")
else:
print(number)
The input file that I am getting for this challenge contains only one line:
N/A
Which does not match the description of the problem. Has anybody else run across this?
using System; using System.Collections.Generic; using System.IO; class Solution { static void Main(String[] args) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution */ for(int i=1;i<=100;i++) {
}
In Python. (Idk why I got 2 score even though the code got 16 marks from ChatGPT)
In Python. (Idk why I got 2 score even though the code got 16 marks from ChatGPT) number = 0 while number < 100: number += 1 if (number % 3 == 0) and (number % 5 == 0): print("FizzBuzz") elif (number % 3) == 0: print("Fizz") elif (number % 5 == 0): print("Buzz") else: print(number)
The input file that I am getting for this challenge contains only one line: N/A Which does not match the description of the problem. Has anybody else run across this?