Skip to content

Instantly share code, notes, and snippets.

View muthu1809's full-sized avatar

Muthuramalingam muthu1809

View GitHub Profile
def add(no1, no2):
print(no1 + no2)
add(10,20)
def கூட்டல்(எண்1, எண்2):
return எண்1 + எண்2
def கழித்தல்(எண்1, எண்2):
return எண்1 - எண்2
def பெருக்கல்(எண்1, எண்2):
return எண்1 * எண்2
def வகுத்தல்(எண்1, எண்2):
def சர்க்கரைப்பொங்கல்_வைப்போம்(அரிசி_அளவு, சர்க்கரை_அளவு, நீர்_அளவு):
print('சர்க்கரைப் பொங்கல் வைக்கப் போகிறோம்')
print('அரிசி', அரிசி_அளவு)
print('சர்க்கரை', சர்க்கரை_அளவு)
print('நீர்', நீர்_அளவு)
பொங்கல் = அரிசி_அளவு + சர்க்கரை_அளவு + நீர்_அளவு
return பொங்கல்
சர்க்கரைப்பொங்கல்_வைப்போம்(500,300,2000)
def சர்க்கரைப்பொங்கல்_வைப்போம்(அரிசி_அளவு, சர்க்கரை_அளவு, நீர்_அளவு):
print('சர்க்கரைப் பொங்கல் வைக்கப் போகிறோம்')
print('அரிசி', அரிசி_அளவு)
print('சர்க்கரை', சர்க்கரை_அளவு)
print('நீர்', நீர்_அளவு)
பொங்கல் = அரிசி_அளவு + சர்க்கரை_அளவு + நீர்_அளவு
return பொங்கல்
def சர்க்கரைப்பொங்கல்_வைப்போம்(அரிசி_அளவு, சர்க்கரை_அளவு, நீர்_அளவு):
print('சர்க்கரைப் பொங்கல் வைக்கப் போகிறோம்')
print('அரிசி', அரிசி_அளவு)
print('சர்க்கரை', சர்க்கரை_அளவு)
print('நீர்', நீர்_அளவு)
def கூட்டல்(எண்1, எண்2):
print(எண்1 + எண்2)
def கழித்தல்(எண்1, எண்2):
print(எண்1 - எண்2)
def பெருக்கல்(எண்1, எண்2):
print(எண்1 * எண்2)
public class Rohit implements Captain
{
public static void main(String[] args)
{
//Rohit rohit = new Rohit();
Captain rohit = new Rohit();
//rohit.shopping();
//rohit.watch_movies();
rohit.toss();
திருடன் = 27
போலீஸ் = 0
while போலீஸ் < திருடன் :
திருடன் = திருடன் + 2
போலீஸ் = போலீஸ் + 5
print(போலீஸ்)
class OverloadingExample
{
static float add(float a,float b) // float type and two argument
{
return a+b;
}
static float add(float a,float b,float c) // float type and three argument
{
return a+b+c;
}
கசையடிகள் = 512
காவலாளி_எண்ணிக்கை = 0
while கசையடிகள்>0:
கசையடிகள் = கசையடிகள்//2
காவலாளி_எண்ணிக்கை+=1
print(காவலாளி_எண்ணிக்கை)