Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions C++/See wifi pass.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <cstdlib>
#include <iostream>
using namespace std;
string x;
int y;
int main()
{
system("color e");
cout<< ("\nsamz>\t");
system("netsh wlan show profile");
cout << ("WHICH ONE?--");
string z = "netsh wlan show profile\t \"";
string n = "\"\tkey=clear";
cin >> x;
z = z + x + n;
system(z.c_str());
}
51 changes: 51 additions & 0 deletions C/samzmaths.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#include <stdio.h>
#include <math.h>

int main()
{

system("color 4");
printf("\nSamz math>\t");


float a,d,p=1,i;
char operator;

scanf("%f", &a);
scanf("%c", &operator);
scanf("%f", &d);

for(i=1;i<=d;i++)
p=p*a;

switch(operator)
{

case '+':
printf("=%.2f\n\n", a+d);
break;

case '-':
printf("=%.2f\n\n", a-d);
break;

case '*':
printf("=%.2f\n\n", a*d);
break;

case '/':
printf("=%.2f\n\n", a/d);
break;

case '^':
printf("=%.2f\n\n", p);
break;


}


main();
getch();

}