This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def add(no1, no2): | |
print(no1 + no2) | |
add(10,20) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def கூட்டல்(எண்1, எண்2): | |
return எண்1 + எண்2 | |
def கழித்தல்(எண்1, எண்2): | |
return எண்1 - எண்2 | |
def பெருக்கல்(எண்1, எண்2): | |
return எண்1 * எண்2 | |
def வகுத்தல்(எண்1, எண்2): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def சர்க்கரைப்பொங்கல்_வைப்போம்(அரிசி_அளவு, சர்க்கரை_அளவு, நீர்_அளவு): | |
print('சர்க்கரைப் பொங்கல் வைக்கப் போகிறோம்') | |
print('அரிசி', அரிசி_அளவு) | |
print('சர்க்கரை', சர்க்கரை_அளவு) | |
print('நீர்', நீர்_அளவு) | |
பொங்கல் = அரிசி_அளவு + சர்க்கரை_அளவு + நீர்_அளவு | |
return பொங்கல் | |
சர்க்கரைப்பொங்கல்_வைப்போம்(500,300,2000) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def சர்க்கரைப்பொங்கல்_வைப்போம்(அரிசி_அளவு, சர்க்கரை_அளவு, நீர்_அளவு): | |
print('சர்க்கரைப் பொங்கல் வைக்கப் போகிறோம்') | |
print('அரிசி', அரிசி_அளவு) | |
print('சர்க்கரை', சர்க்கரை_அளவு) | |
print('நீர்', நீர்_அளவு) | |
பொங்கல் = அரிசி_அளவு + சர்க்கரை_அளவு + நீர்_அளவு | |
return பொங்கல் |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def சர்க்கரைப்பொங்கல்_வைப்போம்(அரிசி_அளவு, சர்க்கரை_அளவு, நீர்_அளவு): | |
print('சர்க்கரைப் பொங்கல் வைக்கப் போகிறோம்') | |
print('அரிசி', அரிசி_அளவு) | |
print('சர்க்கரை', சர்க்கரை_அளவு) | |
print('நீர்', நீர்_அளவு) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def கூட்டல்(எண்1, எண்2): | |
print(எண்1 + எண்2) | |
def கழித்தல்(எண்1, எண்2): | |
print(எண்1 - எண்2) | |
def பெருக்கல்(எண்1, எண்2): | |
print(எண்1 * எண்2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
திருடன் = 27 | |
போலீஸ் = 0 | |
while போலீஸ் < திருடன் : | |
திருடன் = திருடன் + 2 | |
போலீஸ் = போலீஸ் + 5 | |
print(போலீஸ்) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
கசையடிகள் = 512 | |
காவலாளி_எண்ணிக்கை = 0 | |
while கசையடிகள்>0: | |
கசையடிகள் = கசையடிகள்//2 | |
காவலாளி_எண்ணிக்கை+=1 | |
print(காவலாளி_எண்ணிக்கை) |
NewerOlder