myCompiler myCompiler
Deutsch English Español Français Italiano 日本語 한국어 Nederlands Polski Português
Recent
Login Sign up
Recent
Login Sign up
P

@Puvi0707

Upper case lower case

Python
4 years ago
ch=input("enter any character:") if(ch>='A'and ch<'Z'): ch=ch.lower() print("the entered character was in uppercase.in lowecase it is :"+ch) else: ch=ch.upper() print("the entered character was in lowercase.in uppercase i

Prog to determine the character by the user

Python
4 years ago
char=input("press any key:") if(char.isalpha()): print ("the user has entered a character") if(char.isdigit()): print("the user has entered a digit") if(char.isspace()): print ("the user entered a white space char

Prog to only edigible to vote

Python
4 years ago
age=int(input("enter the age:")) if(age>=18): print("you are edigible to vote")

Prog to find odd or even

SQL
4 years ago
num=int(input("enter any number:")) if(num%2==0): print(num,"is even") else: print(num,"is odd")

Prog to vote edigble or not

Python
4 years ago
age=int(input("enter the age:")) if(age>=18): print("you are edigble to vote") else: yrs=18-age print("you have to wait for another"+str(yrs)+"years to cast your vote")

Prog to find larger of 2nos

Python
4 years ago
a= int(input("enter the value of a : ")) b= int(input("enter the value of b : ")) if(a>b): large= a else: large= b print("large= ",large)

Prog to increment a no if it is +ve

Python
4 years ago
x=10 if(x>0): x=x+10 print (x)
Previous Next page

Supported languages

Deno JavaScript NodeJS Python Ruby Go C C++ Java C# TypeScript PHP Bash R Octave (MATLAB) Fortran Lua Erlang SQL MySQL MongoDB Clojure D Perl Kotlin Swift Rust Assembly
© 2026 mycompiler.io
Terms of service Privacy policy Contact us