Quick actions

cmd+k|ctrl+k

Navigation

Languages

lab5 (318)

Snippet info

Language

Cpp

Visibility

public

Author

buteskul5.6

Created

2018-11-07T06:06:14Z

Updated

2018-11-07T06:06:14Z

#include <iostream>
#include<cmath>

using namespace std;

int main()
{
	setlocale(LC_ALL, "ru");
	int n = 500;
	int i = 0;
	while (i<20)
	{
		if (n % 13 == 0 || n % 17 == 0)
		{
			cout << n << endl;
			i++;
		}		
		n++;
	}	
	return 0;
}

INFO