This file contains 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 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 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 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 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(காவலாளி_எண்ணிக்கை) |
This file contains 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
பாசஞ்சர்_வண்டி_நிறுத்தம் = 2 | |
எக்ஸ்பிரஸ்_வண்டி_நிறுத்தம் = 5 | |
while True: | |
if பாசஞ்சர்_வண்டி_நிறுத்தம்%2 == 0 and பாசஞ்சர்_வண்டி_நிறுத்தம்%5 == 0: | |
print('பொதுவான நிறுத்தம் ', பாசஞ்சர்_வண்டி_நிறுத்தம்) | |
break | |
பாசஞ்சர்_வண்டி_நிறுத்தம்+=1 | |
எக்ஸ்பிரஸ்_வண்டி_நிறுத்தம்+=1 |
This file contains 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
மதன்_வயது = 70 | |
கார்த்திகா_வயது = 60 | |
வகுக்கும்_எண் = 2 | |
while வகுக்கும்_எண்<=கார்த்திகா_வயது: | |
if மதன்_வயது%வகுக்கும்_எண்==0 and கார்த்திகா_வயது%வகுக்கும்_எண்==0: | |
பேரன்_வயது = வகுக்கும்_எண் | |
வகுக்கும்_எண்+=1 | |
else: | |
print('முதல் பேரக் குழந்தையின் வயது', பேரன்_வயது) |
This file contains 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
மதன்_வயது = 70 | |
கார்த்திகா_வயது = 60 | |
வகுக்கும்_எண் = 2 | |
while வகுக்கும்_எண்<=கார்த்திகா_வயது: | |
if மதன்_வயது%வகுக்கும்_எண்==0 and கார்த்திகா_வயது%வகுக்கும்_எண்==0: | |
print('பேரன்/பேத்தி வயது', வகுக்கும்_எண்) | |
வகுக்கும்_எண்+=1 |
This file contains 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
எண்1 = int(input("எண்ணைச் சொல்லுங்கள்: ")) | |
எண்2 = int(input("எண்ணைச் சொல்லுங்கள்: ")) | |
வகுக்கும்_எண் = 2 | |
சின்ன_எண் = எண்1 if எண்1<எண்2 else எண்2 | |
while வகுக்கும்_எண்<=சின்ன_எண்: | |
if எண்1%வகுக்கும்_எண்==0 and எண்2%வகுக்கும்_எண் ==0: | |
print("பொது வகுத்தி", வகுக்கும்_எண்) | |
வகுக்கும்_எண்+=1 |
This file contains 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
எண்1 = int(input("எண்ணைச் சொல்லுங்கள்: ")) | |
எண்2 = int(input("எண்ணைச் சொல்லுங்கள்: ")) | |
வகுக்கும்_எண் = 2 | |
if எண்1<எண்2: | |
சின்ன_எண் = எண்1 | |
elif எண்2<எண்1: | |
சின்ன_எண் = எண்2 | |
while வகுக்கும்_எண்<=சின்ன_எண்: | |
if எண்1%வகுக்கும்_எண்==0 and எண்2%வகுக்கும்_எண் ==0: | |
print("பொது வகுத்தி", வகுக்கும்_எண்) |
NewerOlder