Skip to content

Instantly share code, notes, and snippets.

View Soundug's full-sized avatar
💭
Building my own sand castle...

Soundarya G Soundug

💭
Building my own sand castle...
  • India
View GitHub Profile
@Soundug
Soundug / swaptwonumbers.cpp
Created July 8, 2019 14:46
A c++ program that swaps two numbers without using the temp variable.
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int a,b;
cout<<"Enter value of a:";
cin>>a;
cout<<"Enter value of b:";
@Soundug
Soundug / cuberoot.cpp
Created July 7, 2019 20:35
A c++ program that calculates cube root of any number.
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int num, result;
cout << "Enter any number: ";
cin >> num;
result = cbrt(num);
cout << "\n Cube Root of "<< num <<" is: " <<result;
@Soundug
Soundug / cubeofanumber.cpp
Created July 7, 2019 20:16
A c++ program that finds a cube of any number.
#include<iostream>
#include<conio.h>
int cube(int c);
int n;
using namespace std;
int main()
{
cout<<"Enter an integer: ";
cin>>n;
@Soundug
Soundug / squareroot.cpp
Last active July 7, 2019 19:57
A c++ program that finds square root of any number.
#include<iostream>
#include<math.h>
using namespace std;
int main()
{
float sq,n;
cout<<"Enter any number:";
cin>>n;
from tkinter import *
from tkinter import ttk
class Calculator:
calc_value = 0.0
div_trigger = False
mult_trigger = False
add_trigger = False
#include <iostream>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
using namespace std;
int createZombie() {
if (rand() % 67 < 10)
return 11;