formatting source-code for 153fb7b8a5

This commit is contained in:
github-actions
2020-05-30 04:02:09 +00:00
parent 92fe9495ec
commit 8a2de9842b
175 changed files with 1671 additions and 3460 deletions

View File

@@ -1,6 +1,5 @@
#include <iostream>
int main()
{
int main() {
int i, j, m, n;
cout << "Enter size of array 1:";
cin >> m;
@@ -13,14 +12,12 @@ int main()
for (i = 0; i < n; i++) cin >> b[i];
i = 0;
j = 0;
while ((i < m) && (j < n))
{
while ((i < m) && (j < n)) {
if (a[i] < b[j])
i++;
else if (a[i] > b[j])
j++;
else
{
else {
cout << a[i++] << " ";
j++;
}