1. #include <iostream>
2. using namespace std;
3. void generateTable(int x, int y){
4. int result = y / x;
5. for(int i = 1; i <= 10; i++){
6. cout<<result<<" * "<<i<<" = "<<i*result<<endl;
7. }
8. }
9. main(){
10. int found;
11. int data[10];
12. for(int i = 0; i < 10; i++){
13. for(int j=0; j < 10; j++){
14. found++;
15. }
16. }
17. cout<<"Loops executed "<<found<<" times"<<endl;
18. for(int i = 0; i<= 10; i++){
19. data[i] = 0;
20. }
21. int first, second;
22. cout<<"Enter first number: ";
23. cin>>first;
24. cout<<"Enter second number: ";
25. cin>>second;
26. cout<<"Subtract first number by second and show math table of resut"<<endl;
27. generateTable(first, second);
28. int rem = first%2;
29. if(rem = 0){
30. cout<<"First number is even"<<endl;
31. }
32. else{
33. cout<<"First number is odd"<<endl;
34. }
35. }