Must be completed in 1 day       This listing has ended.       Willing to pay a maximum of $10
  • Convert cpp code to python and java
Convert cpp code to python and java.

Requirements

Convert cpp code to python and java

Skills Required

Cpp Python Java

Bids

$ lvl.
Convert CPP to Java.
I will convert cpp (c++) file to java as i have an experience of over 3 years in it. samples available on request.
Contact   Profile   Recommendations  
$5 1 order now!

Comments

  • traiko

    The code in cpp is:

    #include <iostream>
    using namespace std;

    int main() {

    bool repeat = true;
    while (repeat)
    {

    int n;
    cout << "How many asterisks do you want to print? ";
    cin >> n;
    for(int star = 1; star <= n; star++)
    {
    cout << "*";
    }
    cout << "Repeat? [y/n]" << endl;
    char answer;
    cin >> answer;
    repeat = answer == 'y';
    }
    cout << "Thank you, goodbye" << endl;

    }

    8 months ago