Last Comment

No Comment.

Calendar

September 2019
SunMonTueWedThuFriSat
 << < > >>
1234567
891011121314
15161718192021
22232425262728
2930     

Announce

Who's Online?

Member: 0
Visitor: 1

rss Syndication

Archives

Proyecto numero Par o Impar

Este proyecto nos pide un numero y nos dice si es par o impar.

import java.util.Scanner;

public class ParOimpar7 {

public static void main(String[] args) {

Scanner teclado = new Scanner(System.in);

int n;

System.out.println("Escriba un número");
n = teclado.nextInt();

if (n % 2 == 0) 
{
System.out.println("El número " + n + " es par.");
else 
{
System.out.println("El número " + n + " es impar.");
}
}
}

El link del proyecto

http://www.mediafire.com/?j12345w56ca2vp7
05 Apr 2013
borys · 105 views · 0 comments
Categories: Cat

Permanent link to full entry

http://aprendiendojava.esblogs.com/java-b1/Proyecto-numero-Par-o-Impar-b1-p10.htm

Comments

No Comment for this post yet...


Leave a comment

New feedback status: Published





Your URL will be displayed.


Please enter the code written in the picture.


Comment text

Options
   (Set cookies for name, e-mail and url)