This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class exemplo{ | |
| static double atributo1; //atributos da classe | |
| public static void main(Strings args[]){ | |
| //main | |
| } | |
| public static void procedimento(){ | |
| //procedimento | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| class prog{ | |
| public static void main(String [] args){ | |
| double xa,n,eps,xn; | |
| Scanner s = new Scanner(System.in); | |
| xa = s.nextDouble(); | |
| n = s.nextDouble(); | |
| eps = s.nextDouble(); | |
| xn = xa - (xa*xa-n)/(2*xa); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class programa{ | |
| public static void main(String args[]){ | |
| System.out.println("Olá mundo"); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| puts 'ola mundo' |
NewerOlder