Recent programs

Exponential BackOff

an anonymous user · September 23, 2020 · NodeJS
function calculateBackOff(x) {
  const result = Math.pow(1.25, x - 3);
  console.log("the result was",result);
  return result;
}
function exponentialBackOff(_try = 1, accumulation = 0) {
  if (accumulation >= 1000) {
    return console.log("END!\nThe total tume was", accumulation);
  }
  _try += 1;
  const backOffTime = calculateBackOff(_try);

Armstrong Number

M_deepakkumar · September 23, 2020 · C++
#include <iostream>
using namespace std;
class arm
{
    int r,g,rem,y;
    public:
    void getdata();
    void checking();
};
   void arm::getdata()
   {

Swapping

thareefahamed_s · September 23, 2020 · C
#include <stdio.h>

int main() {
    printf("#S_W_A_P_P_I_N_G EXAMPLE#\n");
    printf("..........................\n");
    int first_no,second_no;
    printf("Enter the value for first number:");
    scanf("%d",&first_no);
    printf("%d\n",first_no);
    printf("Enter the value for second number:");
    scanf("%d",&second_no);

swapping

Akilaeaswari · September 23, 2020 · C
#include <stdio.h>

int main() {
    int first_no,second_no,temp;
    printf("enter  first numper:");
    scanf("%d",&first_no);
    printf("%d",first_no);
    printf("enter  second numper:");
    scanf("%d",&second_no);
    printf("%d",second_no);
    temp=first_no;

Armstrong Number

M_deepakkumar · September 23, 2020 · C++
#include <iostream>
using name space std;
class arm;
{
    int r,g,rem,y;
    public:
    void getdata();
    void checking();
};
   void arm::getdata()
   {

Largest number in Class.cpp

Kali26 · updated September 23, 2020 · C++
#include <iostream>
using namespace std;
inline int largest (int&a,int&b,int&c)
{
    int big=0;
    if(a>b)
    big=a;
    else
    big=b;
    if(c>big)
    big=c;

Prime Using Class.cpp

Kali26 · September 23, 2020 · C++
#include <iostream>
using namespace std;
class number
{
    int a,i,c=0;
    public:
    void getdata();
    void check();
};
void number::getdata()
{

Palindrome Using Class.cpp

Kali26 · September 23, 2020 · C++
#include <iostream>
using namespace std;
class palindromenumber
{
    int n,s,t,r;
    public:
    void getdata();
    void check();
};
void palindromenumber:: getdata()
{

Sizes of data types

thareefahamed_s · September 23, 2020 · C
#include <stdio.h>

int main() {
    int a;
    short int b;
    long int c;
    float d;
    double e;
    long double f;
    char g;
    printf("#SIZES OF DATA TYPES IN BYTES#\n");

Palindrome Number

yogambika · September 23, 2020 · C++
#include <iostream>
using namespace std;
class number
{
    int n,t,rem,rev;
    public:
    void getdata();
    void check();
    void display();
};
void number::getdata()

Armstrong Using Class .cpp

Kali26 · September 23, 2020 · C++
#include <iostream>
using namespace std;
class number
{
    int n,s,t,r;
    public:
    void getdata();
    void ascompute();
};
void number::getdata()
{

Add

an anonymous user · September 23, 2020 · Assembly
.model small
.data
a db 08h
b db 02h
.code
Start:
mov ax,@data
Mov ds,ax
Mov bh,a
Mov ch,b
Add bh,ch

C3-72

luis72 · September 23, 2020 · C#
using System;

namespace MyCompiler {
    class Program {
        public static void Main(string[] args) {
            // Luis Alfredo
            Console.WriteLine("Mi tercer programa");
            Console.WriteLine("");
            Console.WriteLine("Mi dia de la semana preferido es viernes");
            Console.WriteLine("");
            Console.WriteLine("Mi deporte favorito es fútbol");

C3-72

andrea72 · September 23, 2020 · C#
using System;

namespace MyCompiler {
    class Program {
        public static void Main(string[] args) {
            // Andrea
            Console.WriteLine("Mi tercer programa");
            Console.WriteLine("");
            Console.WriteLine("Mi día preferido de la semana es: Viernes");
            Console.WriteLine("");
            Console.WriteLine("Mi deporte preferido es: Patinaje");

prog_1

an anonymous user · September 23, 2020 · C++
#include <iostream>

int main()
{
    std::cout << "Hello world!" << std::endl;
    return 0;
}

C3-72

Ivan72 · September 23, 2020 · C#
using System;

namespace MyCompiler {
    class Program {
        public static void Main(string[] args) {
            //Ivan
            Console.WriteLine("Mi tercer programa");
            Console.WriteLine("");
            Console.WriteLine("Mi día de la semana preferido es el Sabado");
            Console.WriteLine("");
            Console.WriteLine("Mi deporte favorito es kendo");

C3-72

an anonymous user · September 23, 2020 · C#
using System;

namespace MyCompiler {
    class Program {
        public static void Main(string[] args) {
            Console.WriteLine("PROGRAMA");
            //Jimena
            Console.WriteLine("Mi tercer programa");
            Console.WriteLine("");
            Console.WriteLine("Mi día de la semana preferido es el Miercoles");
            Console.WriteLine("");

C3-72

an anonymous user · September 23, 2020 · C#
using System;

namespace MyCompiler {
    class Program {
        public static void Main(string[] args) {
            //Karime
            Console.WriteLine("Mi tercer programa");
            Console.WriteLine("");
            Console.WriteLine("Mi día de la semana preferido es viernes");
            Console.WriteLine("");
            Console.WriteLine("Mi deporte favorito es gimnasia");

C3-72

Paolo72 · September 23, 2020 · C#
using System;

namespace MyCompiler {
    class Program {
        public static void Main(string[] args) {
            Console.WriteLine("Hello world!");
            //Paolo
            Console.WriteLine("Mi tercer programa");
            Console.WriteLine("");
            Console.WriteLine("MI dia de la semana preferido es el Viernes");
            Console.WriteLine("");

C3-72

nicolemoealess · September 23, 2020 · C#
using System;

namespace MyCompiler {
    class Program {
        public static void Main(string[] args) {
            //nicole
            Console.WriteLine("mi tercer progama");
            Console.WriteLine("");
            Console.WriteLine("Mi dia favorito de la semana es el viernes");
            Console.WriteLine("");
            Console.WriteLine("mi deporte favorito es la natación");