Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

c++ converter to python

#include <iostream>
using namespace std;
int main()
{
    int puppies, kitties;
    cout<<"Enter the number of puppies: ";
    cin>>puppies;
    cout<<"Enter the number of kitties: ";
    cin>>kitties;
    if(puppies <= 1)
        cout<<"You have adopted "<<puppies<<" puppy ";
    else
        cout<<"You have adopted "<<puppies<<" puppies ";
    if(kitties <= 1)
        cout<<"and "<<kitties<<" kitty";
    else
        cout<<"and "<<kitties<<" kitties";
    return 0;
}
Comment

PREVIOUS NEXT
Code Example
Python :: datetime pypi 
Python :: how to find pandoc template folder 
Python :: poython command options 
Python :: to find keywords in a text spacy 
Python :: float value in regression expression python 
Python :: change column row box colour tkinter 
Python :: generate random phone number python 
Python :: what does - none do in python 
Python :: how to find the medium, first, second and third quartile in a pandas data frame 
Python :: currelation matrix python 
Python :: Raymenschechorne 
Python :: newick string python 
Python :: python filter function using lambda function as one of the parameters 
Python :: pandas column rgeex doesnot contain 
Python :: the coding train 
Python :: if number Of Players == =4 python 
Python :: python random number generator 
Python :: networkx draw edge description 
Python :: transverse tensor in pytorch 
Python :: python loading image file requires absolute path 
Python :: python -c crypt command in python3.3 and above 
Python :: pydub reproduce audiosegment 
Python :: django how to delete a db field 
Python :: how to reverse a dictionary in python 
Python :: random module randint 
Python :: python pycharm 
Python :: check check writability of the file 
Python :: pytho ntoday as string 
Python :: get random consonant python 
Python :: c Pythagorean triples 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =