Horje
convert java to c++ Code Example
convert java to c++
public class Main {
    public static void main(String[] args) {
   // write your code here
        int j = 1;
        for(int k = 5; k >= 1; k--){
            for (int d = 1; d < k; d++ ){
                System.out.print(j+ " ");
                j += 1;
            }
            System.out.println();
        }
    }
}
convert java to c++
package no2;
import javax.swing.JOptionPane;
public class nama {
     public static void main(String[]args){
         String a = JOptionPane.showInputDialog("Masukkan nama :");
         String b = JOptionPane.showInputDialog("Masukkan jumlah angka :");
         String hasil ="";
         for(int i=0;i<Integer.parseInt(b);i++){
             hasil +="nama : "+a+"\n";
         }
      
         JOptionPane.showMessageDialog(null,hasil);
         
                
             
         }
        } 
              
convert java to c++
public class Main {
    public static void main(String[] args) {
   // write your code here
        int j = 1;
        for(int k = 5; k >= 1; k--){
            for (int d = 1; d < k; d++ ){
                System.out.print(j+ " ");
                j += 1;
            }
            System.out.println();
        }
    }
}
convert java to c++
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;

public class CountNoOfElements{

    public static void main(String args[]) throws Exception {
        String filepath = "test.xml";
        DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
        DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
        Document doc = docBuilder.parse(filepath);

        NodeList nodeList = doc.getElementsByTagName("*");
        int count = nodeList.getLength();
        System.out.println("Total of elements : " + count);
    }   
}




Cpp

Related
udo apt install dotnet-sdk-5 permission denied Code Example udo apt install dotnet-sdk-5 permission denied Code Example
max of 3 numbers in c++ Code Example max of 3 numbers in c++ Code Example
online compiler to calculator time complexity Code Example online compiler to calculator time complexity Code Example
bool nullable to bool c# Code Example bool nullable to bool c# Code Example
c++ overloading by ref-qualifiers Code Example c++ overloading by ref-qualifiers Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8