Abhishek Dandriyalabhishek-dandriyal.hashnode.dev·Apr 14, 2024Javascript Conditional Statements with Some ExamplesDriving License Eligibility Check: let age = 18; let testPassed = true; if (age >= 18) { if (testPassed) { console.log("Congratulations! You are eligible and have obtained the license."); } else { console.log("Sorry, you did...Discuss·1 likeJavascript Conditional Statements with Some Examples
Abhishek Dandriyalabhishek-dandriyal.hashnode.dev·Apr 14, 2024Email Verification in Javascript// Email Varification // Input an Email // Length of the email > 11 // after . only 2 or 3 characters allowed // minimum 3 characters between @ and . const email = prompt("Enter the email address"); const emailLen = email.length; const dotIndex = e...DiscussEmail Verification in Javascript
Gagan G Saralayagagang.hashnode.dev·Mar 10, 2024C program to input a matrix from the user and find the row sum and the column sum.This program inputs a matrix from the user and then uses the "i" and "j" value from the for loop to choose the element from the matrix and add them. for(int i=0;i<m;i++) { int csum=0; for(int j=0;j<n;j++) { csum=csum+arr[j][i]; } printf("\nSum of al...Discuss7daystreak
Gagan G Saralayagagang.hashnode.dev·Mar 9, 2024C program to display employee details.Here is a C program to input employee details from the user and display the said employee based on the employee number. #include <stdio.h> // Define a structure for employee details struct Employee { char name[100]; int salary; char addr...DiscussC
Gagan G Saralayagagang.hashnode.dev·Mar 8, 2024Showing String Functions in CThere are many uses of strings in C. There are many useful built in string functions in C. Some are used to find the length of the string and some are used to copy one string to another. #include <stdio.h> #include <string.h> int main() { char str1...Discuss7daystreak
Gagan G Saralayagagang.hashnode.dev·Mar 7, 2024C program to input a matrix and change the diagonal elements to zero.Here is a program to convert the diagonal elements to zero. It cheaks if the element i==j and converts it to zero. And it cheaks if the element i+j+1 == to the number of rows and converts to zero. Here is the code. #include<stdio.h> #include<math.h>...Discuss7daystreak
Mohammed Abdul Raheemraheemalzeeshan.hashnode.dev·Mar 6, 2024React Folder StructureIn this article, I am going to discuss the React folder structure with Vite. After installing your React app with Vite you will get 3 folders and 7 files. In React they folder there are main 3 folders and 5 files. They are: > node_modules/ > public/...DiscussReact NotesReact
Gagan G Saralayagagang.hashnode.dev·Mar 6, 2024C program to find the factorial of a number.Here is a program to find the factorial of a number. #include<stdio.h> int fac(int n); int main() { printf("Here is a program to find the factorial of a number using functions\n"); printf("Enter a num to find the factorial:"); int n = 0...Discusscrazyblogger
Gagan G Saralayagagang.hashnode.dev·Mar 5, 2024C program to find the GCD and LCM using pointersHere is a C program to find the Greatest common devisor and the Least common multiple of a number. #include<stdio.h> void gcdlcm(int num1,int num2,int*gcd,int*lcm) { int i,max; max=(num1>num2)?num1:num2;//Simple way of saying if num1 is great...Discuss7daystreak
Yugandhar Dasariyugandhardasari.hashnode.dev·Mar 1, 2024How To Ease Your Team’s Development Workflow With Git HooksDevelopment workflows can easily get out of hand and start causing confusion and friction within teams — especially as they get bigger in size. There have been too many times when our code review was just about noticing that missing comma or the fail...DiscussGitHub