رد: أتمنى احد يساعدني في حل السوال هذاا ...
هذا كودي بس الجهاز مو راضي يسوي لي رن ماعرف اش المشكلة
import java.util.Scanner;
public class Sentence{
public static void main(String [] args){
Scanner input=nw Scanner (System.in);
long Sentence=input.nextLong;
if(sentence end with question mark) && (sentence contain even number)
System.out.println("Yes");
if(sentence end with question mark) && (sentence contain odd number)
System.out.println("No");
else if(sentence end with exclamation)
System.out.println("Wow");
else
System.out.println("you always say followed by the input ");
|