add char example for lab1

This commit is contained in:
Oleksii Aleshchenko 2023-03-16 15:21:51 +02:00
parent e910ee6e4d
commit afc13cf9f8
1 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,15 @@
public class Lab1 {
public static void main(String[] args) {
// char c = 'a' + '1';
char c = 97;
// char c = '1';
System.out.println(c);
System.out.println((int) c);
c++;
System.out.println(c);
System.out.println((int) c);
System.out.println((double)'1'/'3');
// System.out.println( (double) 0 / 0 );
// System.out.println( Math.sqrt(-1) );
double s = 0;