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
/** | |
* This program is written withoutout any exception handling means , I'm assuming that your input will be between 1 to 1000 | |
* @author Nitish Kumar Singh | |
*/ | |
public class Integer2Words { | |
public static void main(String args[]){ | |
int input = 586; | |
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
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.SQLException; | |
import java.sql.Statement; | |
/* | |
* @author nitish | |
*/ | |
public class Database { | |
public static void main(String[] args) { | |
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
import java.util.Scanner; | |
/* | |
*@author Nitish Kumar Singh | |
*/ | |
class T100{ | |
public static void main(String args[]){ | |
Scanner obj = new Scanne(System.in); | |
int n,m ; | |
System.out.println("Entre the value"); | |
int a = obj.nextInt(); |
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
import java.awt.Dimension; | |
import java.awt.FlowLayout; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import javax.swing.BorderFactory; | |
import javax.swing.*; | |
/** | |
* @author nitish | |
*/ | |
public class Test extends JFrame implements ActionListener{ |
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
#include <stdio.h> | |
#include <stdlib.h> | |
int main() | |
{ | |
int zz; | |
scanf("%d",&zz); | |
int array1[zz][zz] , array2[zz][zz]; | |
printf("Enter value for Array 1 : \n"); | |
for(int i= 0; i<zz;i++){ |
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
#include <stdio.h> | |
#include <conio.h> | |
int main() | |
{ | |
int a ,b ,c ,d; | |
printf("Enter 4 number : "); | |
scanf("%d %d %d %d",&a,&b,&c,&d); | |
if(a>b){ // ELEMENATION OF VARIABLE B |
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
# Random password generator | |
import random, re, string | |
def validate(password): | |
# password validation | |
# a letter | |
letter = re.search(r"[a-zA-Z]", | |
password) is None | |
# a digit | |
digit = re.search(r"\d", password) is None |
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 MagicTriqngle | |
{ | |
public static void main(String[] args) | |
{ | |
String s= "ABRACADABRA"; | |
for (int i = s.length(); i > 0; i --) { | |
for(int u = 0;u<s.length()-i;u++) | |
System.out.print(" "); | |
for (int j = 0; j < i; j ++) | |
System.out.print(s.charAt(j)+" "); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<style media="screen"> | |
body{ | |
background: #efefef; |
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
#include<iostream> | |
using namespace std; | |
class A{ | |
int x; | |
public: | |
void getdata(){ | |
cout<<"\n Enter value of x:"<<endl; | |
cin>>x; | |
} | |
void showdata(){ |
OlderNewer