[استفسار] Java: سؤال ماعرفت اكمله ,, <div><div align="center">بسم الله الرحمن الرحيم السؤال : Write a java application that prompts the user to enter how many numbers will be read then write how many numbers are greater than 0. How many integers you will enter ?5 Enter number 1:3 Enter number 2:4 Enter number 3:-4Enter number 4:-3Enter number 5:7There are 3 numbers greater than 0 الحل : import java.util.Scanner; public class E2 { public static void main(String[] args) { // TODO code application logic here Scanner scan = new Scanner(System.in); System.out.println("How many integers you will enter ?"); int end =scan.nextInt(); int count=1; while (count |
الساعة الآن 11:40 PM |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir