Skip to content
This repository has been archived by the owner on Jun 22, 2019. It is now read-only.

Commit

Permalink
2nd commit - pull request test
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudiu Bicsabi committed Mar 28, 2018
1 parent 53c8221 commit 6c32e48
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 7 deletions.
48 changes: 48 additions & 0 deletions src/JavaBasicsLab/MainClassForFirstSession.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
package JavaBasicsLab;

public class MainClassForFirstSession {

public static void main(String[] args) {
// TODO Auto-generated method stub
int numarulMeu = 12;
int numarulTau = 20;

int suma = numarulMeu + numarulTau;
String descriere = "Suma celor doua numere este: ";
String descriere2 = "bla bla";
String concatenare = descriere + descriere2;
System.out.println(concatenare);

System.out.println("Iteratia Numarul : 1");
System.out.println("Iteratia Numarul : 2");
System.out.println("Iteratia Numarul : 3");

for (int i = 0; i <= 1000; i=i+100) {

System.out.println("Iteratia Numarul : " + i);

}

int x = 0; //initializare

while (x < 6) {

int restulImpartirii = x % 2;

if (restulImpartirii == 0) {

System.out.println("Numarul par este : " + x);

}
else {
if (restulImpartirii == 1) {
System.out.println("Am intrat pe ramura 2 de IF : " + x);
}
}
x++;

}

}

}
7 changes: 0 additions & 7 deletions src/JavaBasicsLab/main.java

This file was deleted.

0 comments on commit 6c32e48

Please sign in to comment.