This file contains hidden or 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; | |
void perfectnumber(int num); | |
int main(){ | |
int low,high,sum=0,temp; | |
cout <<"Please enter two integer"<<endl; | |
cout << "Integer 1: "; | |
cin >>low; | |
cout << "Integer 2: "; | |
cin >>high; |
This file contains hidden or 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; | |
void armstrong(int num); | |
int main(void){ | |
int i; | |
for(i=100;i<999;i++) | |
armstrong(i); | |
} | |
void armstrong(int num){ | |
int temp; |
This file contains hidden or 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; | |
int fact(int); | |
int main(){ | |
cout << "Please enter a positive integer: "; | |
int user,final; | |
cin >> user; | |
cout <<"Your factorial of number is: "<<fact(user)<<endl; | |
} |
This file contains hidden or 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> | |
#define SIZE 10 | |
void bubblesorting(int a[SIZE]); | |
using namespace std; | |
int main(void) { | |
int usr[SIZE]={0},i=0; | |
cout << '\t'<<"Welcome" << endl<<"Please enter 10 number for sorting: "; | |
for(i=0;i<SIZE;i++){ | |
cin >>usr[i]; | |
} |
This file contains hidden or 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; | |
double area(double); | |
int main(){ | |
double x1; | |
cout <<"Please enter one side dimesion: "; | |
cin>>x1; | |
cout <<"Your area is: "<<area(x1)<<endl; | |
system("pause"); |
This file contains hidden or 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; | |
int TakeFibonacci(int num); | |
int main(void){ | |
int number; | |
cout <<"Please enter the number: "; | |
cin >> number; | |
cout << "Your number is: "<<number<<endl<< "Fibonacci number is: "<< TakeFibonacci(number)<<endl; | |
} | |
int TakeFibonacci(int num){ |
This file contains hidden or 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
{ | |
// Most Commonly Used | |
// Controls auto save of dirty files. Accepted values: 'off', 'afterDelay', 'onFocusChange' (editor loses focus), 'onWindowChange' (window loses focus). If set to 'afterDelay', you can configure the delay in 'files.autoSaveDelay'. | |
"files.autoSave": "off", | |
// Controls the font size in pixels. | |
"editor.fontSize": 14, | |
// Controls the font family. |
This file contains hidden or 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
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# format() Metodunun Kullanım Biçimleri" | |
] | |
}, | |
{ |
This file contains hidden or 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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
This file contains hidden or 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 numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
cur_vol = {"Voltage": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "Current": [0.0000555556, 0.000111111, | |
0.000166667, 0.000222222, 0.000277778, 0.000333333, 0.000388889, 0.000444444, 0.0005, 0.000555556]} | |
data = pd.DataFrame(cur_vol) | |
plt.plot(data.Voltage, data.Current, color="red") | |
plt.scatter(data.Voltage, data.Current, color="red") | |
plt.bar(data.Voltage, data.Current, alpha=0.5, align="center", color="blue") |
OlderNewer