Basic java with output : Your Profile







Basic java with output  :  Your Profile





import java.util.*;
public class profile extends sum_product
{
static Scanner soul = new Scanner (System.in);
public static void main ( String[]args )
{    
String a;
int b;
double c;
System.out.println ( "What is your name : " );
a=soul.nextLine();
System.out.println ( "How old are you :" );
b=soul.nextInt();
System.out.println ( "height :" );
c=soul.nextDouble ();

System.out.println ("your name is " +a);
System.out.println ("your age is "+b);
System.out.println ("your height is " +c );
}
}






OUTPUT

What is your name : ? ( example: Pussy )

How old are you : ?  ( example: 1 )

height :  ?  ( example:  3 )

your name is Pussy
your age is 1

your height is 3.0
















HAVE FUN CODING!



“Help us support our site by Donating a small amount of donation"

You can donate by clicking the donate button below.











No comments:

Post a Comment

DontMind8

Template images by 5ugarless..