0

Errors are their in r please help me

print("generating a numbers by Khushi from 1 to 100 range ") for (i in 1:100) if(i%3==0) { print (the number is divisible by 3) } else if(i%3&i%5==0) { print("the number is divisible by both 3 and 5") } else (i %5==0) { print ("the number is divisible by 5") }

11th Sep 2022, 10:49 AM
Abhishek
Abhishek - avatar
2 odpowiedzi
11th Sep 2022, 10:59 AM
Lisa
Lisa - avatar
0
Hints : 3 and 5 first Then 3 Then 5
11th Sep 2022, 10:57 AM
Jayakrishna 🇮🇳