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
from math import floor, ceil | |
from random import randrange, sample, choices | |
from datetime import datetime, timedelta | |
def get_random_nos(n,Min,Max): | |
assert Min<n,f"WTF! How can you divide {n} in {Min} numbers all integers." | |
assert Max>Min,f"Careful! Your Upper Limit is smaller that Lower Limit" | |
# assert Min%10!=0,"Lower Limit is Not a multiple of 10" | |
# assert Max%10!=0,"Upper Limit is Not a multiple of 10" | |
no_of_terms = floor((floor(n/Min) + ceil(n/Max))/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
<div class="card"> | |
<div class="ds-top"></div> | |
<div class="avatar-holder"> | |
<img src="https://avatars0.githubusercontent.com/u/63636498?s=460&u=e711a0f4189d9511a2b22b2749d9b09735599dcd&v=4" alt="ABD"> | |
</div> | |
<div class="name"> | |
<a href="https://github.com/ABD-01" target="_blank">ABD-01</a> | |
<!-- <h6 title="Followers"><i class="fas fa-users"></i> <span class="followers">18</span></h6> --> | |
</div> | |
<div class="button"> |
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> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <termios.h> | |
#include <unistd.h> | |
typedef char *string ; | |
struct dish | |
{ | |
string name; |
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> | |
#include <math.h> | |
int reverse(int ); | |
int main() | |
{ | |
int num; | |
printf("Enter a num: "); | |
scanf(" %i",&num); | |
printf("The reverse of given integer is: %i \n",reverse(num)); |
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> | |
#include <math.h> | |
int binary(int ); | |
int main() | |
{ | |
int num; | |
printf("Enter a num: "); | |
scanf(" %i",&num); | |
printf("The output in Binary is: %i \n",binary(num)); |