English, asked by sarayuredii27, 6 hours ago

i need a c or c++ program for this question


se and each product has a different price,
Dring the holiday season the shop owner
decides to introduce a special offer. He wishes
bute gift hampers to customers who
purchase products whose total price is a
gere cube f customers don't meet this
rement the owner will allow them to buy
a few more products order to make the total
tego the toprint Yes" if the
stomer will receive a gift hamper else print
og the price of the
the store should buy in order to​

Answers

Answered by AceMaster4328
0

Please make me Brainliest answer

Answered by alockchrono6
0

Answer:

public class PrimeExample{

public static void main(String args[]){

if(n==0||n==1){

System.out.println(n+" is not prime number");

}else{

for(i=2;i<=m;i++){

if(n%i==0){

System.out.println(n+" is not prime number");

flag=1;

break;

}

}

if(flag==0) { System.out.println(n+" is prime number"); }

}//end of else

}

}

Similar questions