/****************************************************************************** | |
18 June, 2022 | |
Write a program to find the area of a triangle using Heron's Formula. | |
3 sides of a triangle | |
Herons formula is s=(a + b + c)/2 and then sqrt(s*(s-a)*(s-b)*(s-c)) | |
*******************************************************************************/ | |
#include <stdio.h> |
# Program to implement Double Hashing | |
class doubleHashTable: | |
# initialize hash Table | |
def __init__(self): | |
self.size = int(input("Enter the Size of the hash table : ")) | |
self.num = 5 | |
# initialize table with all elements 0 | |
self.table = list(0 for i in range(self.size)) | |
self.elementCount = 0 |
# Program to implement Double Hashing | |
class doubleHashTable: | |
# initialize hash Table | |
def __init__(self): | |
self.size = int(input("Enter the Size of the hash table : ")) | |
self.num = 5 | |
# initialize table with all elements 0 | |
self.table = list(0 for i in range(self.size)) | |
self.elementCount = 0 |
-- Paste the following into https://www.programiz.com/sql/online-compiler/ | |
DROP TABLE Customers; | |
DROP TABLE Orders; | |
DROP TABLE Shippings; | |
create table Client_master ( | |
Client_no varchar(6) primary key, | |
Name varchar(20) not null, | |
City varchar(15), |
#include <cs50.h> | |
#include <stdio.h> | |
int initialvalidate(long cardnumber); // Checks if cardnumber is 13, 15, or 16 digits long. | |
int validate(long cardnumber); // Luhn's algorithm. | |
string whichbrand(long cardnumber); // Tells which brand i.e. VISA, MASTERCARD, AMEX. | |
int countdigits(long num); // Used for initial validation. | |
int main(void) | |
{ |
Hi, I figured it out! So the theme is basically GitHub Dark Default with a few customizations. To add the customizations, you have to open up settings.json and add a few things.
Step 1: Set the theme to GitHub Dark Default.
Step 2: Press Ctrl + Shift + P
and then type Preferences: Open Settings (JSON)
Step 3: Scroll down until you find workbench.colorCustomizations
and then inside that you should paste this:
"[GitHub Dark Default]": { // This is CS50 style :)
"activityBar.background": "#000",
"editor.background": "#000",
Please treat this discussion forum with the same respect you would a public park. We, too, are a shared community resource — a place to share skills, knowledge and interests through ongoing conversation.
These are not hard and fast rules, merely guidelines to aid the human judgment of our community and keep this a clean and well-lighted place for civilized public discourse.
Help us make this a great place for discussion by always working to improve the discussion in some way, however small. If you are not sure your post adds to the conversation, think over what you want to say and try again later.
The topics discussed here matter to us, and we want you to act as if they matter to you, too. Be respectful of the topics and the people discussing them, even if you disagree with some of what is being said.