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 find_sum(a, b): | |
| res = 0 | |
| if( a < b ): | |
| for item in range(a, b+1): | |
| res += item | |
| else: | |
| for item in range(b, a+1): | |
| res += item | |
| return res |
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
| aa |
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
| #include<stdio.h> | |
| int main() | |
| { | |
| int num; | |
| scanf("%d",&num); | |
| int res , val_11 , val_10 ,i; | |
| if(num%11 ==0) |
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
| #include<stdio.h> | |
| int main() | |
| { | |
| int num,i; | |
| scanf("%d",&num); | |
| int range = num , val = num ,val_range = num; | |
| while(range>0) | |
| { |
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
| #include<stdio.h> | |
| int main() | |
| { | |
| int num; | |
| scanf("%d",&num); | |
| int range = num; | |
| int spaces = num * 2 ; // for spaces | |
| int i,count=0,val=1,val_range=1; | |
| while(range>0) | |
| { |
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
| find . -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
| import time,random | |
| items = [chr(i) for i in range(0x30a1, 0x30ff + 1)] # katakana | |
| for i in range(1,11): # spaces and numbers | |
| items.append(str(i)) | |
| items.append(" "*i) | |
| def rain(row,column): # rows,columns |
NewerOlder