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 <string> | |
using namespace std; | |
int Pascal_Tri(int row ,int col){ | |
if(row == 0 || col == 0){ | |
return 1; | |
} | |
else if(row == col){ |
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
#ifndef MOVIE_H | |
#define MOVIE_H | |
#include <iostream> | |
using namespace std; | |
class movie{ | |
public: | |
movie(string movieName ,string MPAA); | |
int rate ,one = 0 ,two = 0 ,three = 0 ,four = 0 ,five = 0 ,nOfPeople_rated; | |
void setname(string name); |
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 <iomanip> | |
#include <cassert> | |
using namespace std; | |
// A structure to store a matrix | |
struct matrix | |
{ | |
int** data; // Pointer to 2-D array that will simulate matrix |
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 <string> | |
using namespace std; | |
void time_convert(string time); | |
int main() | |
{ | |
string str, time=""; | |
cout << "Please, Enter the time you want to convert: "; |
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> | |
using namespace std; | |
int main() | |
{ | |
int e=1,n; | |
cout << "enter the required num : "; | |
cin >> n; | |
for (int i=0; i<1000 ; i++) |
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> | |
using namespace std; | |
int main() | |
{ | |
int n; | |
cout << "enter the number that u want the Multiplication table of it : "; | |
cin>>n; | |
cout<<n<<" | "<<endl; |
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 <string> | |
using namespace std; | |
int main() | |
{ | |
int a; | |
string text ; | |
cout << "what do you like to do today ? \n"; | |
cout << "1- Cipher a message \n"; |
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
def check16(lst): | |
count1=0 | |
for i in lst: | |
for z in i: | |
if(z=='x'): | |
count1+=1 | |
if(count1==16): | |
return True | |
else: | |
return False |