-
Notifications
You must be signed in to change notification settings - Fork 1
/
Hello.java
40 lines (35 loc) · 1021 Bytes
/
Hello.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package hello;
import java.util.Scanner;
/**
*
* @author pahonsi
*/
public class Hello {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Scanner sc = new Scanner(System.in);
System.out.print("Hello world\nEnter your name: ");
System .out. println (" Hello world !");
int a,b,d;
float g,t;
System.out.print("votre fiets vaialbe a!\n");
a=sc.nextInt();
b=sc.nextInt();
g=a+b;
t=b-a;
d=b*a;
char c,f;
System.out.println("la 1\n"+g+"la second\n"+t+"la dernier"+d);
System.out.print("pt");
//system.out.println("a is egual" + a );
System.out.print("bonjour\n");
}
}