怎么输出最大的a
#include<iostream>
#include <algorithm>
using namespace std;
int main()
{
int a = 0;
for (a = 1; a < 100; a++)
if (a % 13 == 0)
cout << a << endl;
}
#include<iostream>
#include <algorithm>
using namespace std;
int main()
{
int a = 0;
for (a = 1; a < 100; a++)
if (a % 13 == 0)
cout << a << endl;
}
#include<iostream>
#include <algorithm>
using namespace std;
int main()
{
int a = 0;
int ans;
for (a = 1; a < 100; a++)
if (a % 13 == 0)
ans = a;
cout << ans;
}