Skip to content

Instantly share code, notes, and snippets.

View RitikBarnwal's full-sized avatar
🎯
Focusing

Ritik Barnwal RitikBarnwal

🎯
Focusing
View GitHub Profile
@RitikBarnwal
RitikBarnwal / Hollow Rectangle Pattern in Java
Created October 13, 2022 08:15
Hollow Rectangle Pattern in Java
public class Program
{
public static void hallow_prten(int totRow, int totCols){
for (int i=1; i<=totRow; i++){
for (int j=1; j<=totCols; j++){
if (i==1 || i==totRow || j==1 || j==totCols){
System.out.print("*");
} else {
System.out.print(" ");
# cook your dish here
for _ in range(int(input())):
n,x = map(int,input().split())
if n<=x:
if x%n==0:
print("Yes")
else:
print("No")
else: