Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. voldyy

    Python Digit into number

    another example: turn a list of digit into number input [12,12,1] output 12121 input:[21,34,7] output: 21347 #for this one code work input[5,4,3,0,2] output 54302
  2. voldyy

    Python Digit into number

    Hi, how can i change this code to work for two-digit numbers or three-digit number? For now only work for single digit numbers, tried to change algorthm but didnt work. def to_number(digits): result=digits[0] for el in digits[1:]: result=result*10 result=result + el...
  3. voldyy

    C++ Class

    nope
  4. voldyy

    C++ Class

    @Krusty the Senile I have only this, but i don't think its correctly written. #include <iostream> using namespace std; class receipt { string name; static const double STOCKS=3; double price [STOCKS]; };
  5. voldyy

    C++ Class

    Hello can someone help with this please Write a receipt class. Class to contain as data members • The name of the store • Array of prices of purchased goods, and member functions: • Constructors • get () and set () - for prices to work with individual elements of the array • show () -...
Back
Top Bottom