CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <iostream>
#include <sstream>
#include <cmath>
using namespace std;
void crime_detect(int a, string arr[][4]) {
if(a!=0) {
cout << "\nInconsistant transaction is detected on the month " << arr[a][0] << " of \"" << arr[a][2] << arr[a][3] << "\" for " << arr[a][1] << " expenses." << endl;
}
}
int main() {
int K=1000, M=pow(10,6), B=pow(10,9), T=pow(10,12), Qd=pow(10,15), x=0, arr[100], a=0, b=1, max;
string log[6][4] =
{{"FEB","SLR","4","M"},
{"FEB","ENT","800","K"},
{"MAR","SLR","4000","K"},
{"MAR","ENT","800","K"},
{"APR","SLR","4010","K"},
{"APR","ENT","810","K"}};
cout << "The Expense log:" << endl;
for(int i = 0; i < 6; ++i) {
cout << "\n";
for(int j = 0; j < 4; ++j) {
cout << log[i][j] << "\t\t"; }}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run