show dbs
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
function fizzbuzz(){ | |
for(var i=1; i<=100; i++){ | |
var myvar = ""; | |
if(i%3 === 0) myvar += "Fizz"; | |
if(i%5 === 0) myvar += "Buzz"; | |
if(myvar == "") myvar = i; | |
console.log(myvar); | |
} | |
} |
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> | |
#include<math.h> | |
using namespace std; | |
int main() { | |
float guess, quotient, average{0}; | |
int num, x{1}; | |
cin>>num; | |
while(true){ | |
if(pow(x,2)<=num){ | |
guess = x; |
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> | |
void fb(int n, int a, int b){ | |
if(n<=0){ | |
return ; | |
} | |
else if(n==1){ | |
printf("%d\t", a); | |
return ; | |
}else{ | |
printf("%d\t", a); |
- The C Programming language (ANSI)
- C++14 How to program - Paul and Harvey Dietel
- Java the complete reference - Herbert Schildt
- The Modern JavaScript Tutorial
- Learning JavaScript Design Patterns A book by Addy Osmani
- Computer System Architecture - Morris Mano
- typeof value
- value.length
- parseInt(value)
- parseFloat(value)
- value.toFixed()
- value.toUpperCase()
- value.toLowerCase()
/* A namespace is used to organise our classes and their methods in a herarchical manner.
This helps in avoiding method conflicts, suppose when two or more classes have same method
with different definition then we can mention explicitly their namespace.class.method for
the method to use. */
using System;
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 <string.h> | |
int main(int argc, char **argv) | |
{ | |
int i = 1; | |
while( i <= 100){ | |
char str[10] = ""; | |
if( i%3 == 0) | |
strcat(str, "Fizz"); | |
if( i%5 == 0) |
OlderNewer