?? ??? ?? ????? ?
We comply with Telegram's guidelines:
- No financial advice or scams
- Ethical and legal content only
- Respectful community
Join us for market updates, airdrops, and crypto education!
Last updated 8 months, 4 weeks ago
[ We are not the first, we try to be the best ]
Last updated 11 months, 1 week ago
FAST MTPROTO PROXIES FOR TELEGRAM
ads : @IR_proxi_sale
Last updated 7 months, 1 week ago
تعداد تکرار
```
#include
using namespace std;
int main()
{
int arr[10];
for (int i = 0; i < 10; i++)
{
cin >> arr[i];
}
int max = arr[0];
int final\_frequency = 0;
for (int i = 0; i < 10; i++)
{
int frequency = 0;
for (int j = 0; j < 10; j++)
{
if (arr[j] == arr[i])
frequency++;
}
if (frequency > final\_frequency)
{
final\_frequency = frequency;
max = arr[i];
}
}
cout << max << ": " << final\_frequency;
return 0;
}
```
اندیس + ۱
```
#include
using namespace std;
int main()
{
int x, arr[10];
for (int i = 0; i < 10; i++)
{
cin >> arr[i];
}
cin >> x;
for (int i = 0; i < 10; i++)
{
if (arr[i] == x)
{
cout << i + 1;
return 0;
}
}
cout << "error";
return 0;
}
```
واررونه
```
#include
using namespace std;
int main()
{
int n;
cin >> n;
int arr[n];
for (int i = 0; i < n; i++)
{
cin >> arr[i];
}
for (int i = n \- 1; i >= 0; i\-\-)
{
cout << arr[i] << " ";
}
return 0;
}
```
???جواب های صحیح سوالات تمرین شماره 5️⃣ ??
استاد خوب
```
cpp
#include
using namespace std;
int main()
{
float grades[10], max, div;
for (int i = 0; i < 10; i++)
{
cin >> grades[i];
if (grades[i] > 20 || grades[i] < 0)
{
cout << "error";
return 0;
}
if (i == 0)
max = grades[i];
if (grades[i] > max)
max = grades[i];
}
div = 20 \- max;
for (int i = 0; i < 10; i++)
{
grades[i] += div;
cout << grades[i] << " ";
}
return 0;
}
```
مستطیل
```
#include
using namespace std;
int main()
{
int x, y;
cin >> x >> y;
for (int i = 0; i < y; i++)
{
for (int j = 0; j < x; j++)
{
cout << '*';
}
cout << endl;
}
return 0;
}
```
زوج
```
#include
using namespace std;
int main()
{
int x;
cin >> x;
for (int i = x; i > 0; i\-\-)
{
if (i % 2 != 0)
continue;
if (i == 2)
cout << i;
else
cout << i << ',';
}
return 0;
}
```
سه رقمی
```
#include
using namespace std;
int main()
{
int number, r = 0;
cin >> number;
for (int i = number; i > 0; i /= 10)
{
r++;
}
if (r != 3)
{
cout << "error";
return 0;
}
if (number % 4 == 0 || number % 5 == 0)
{
cout << "yes";
return 0;
}
cout << "no";
}
```
کوچک ترین
```
#include
using namespace std;
int main()
{
float a, b, c;
cin >> a >> b >> c;
if (a <= b && a <= c)
cout << a;
else if (b <= c)
cout << b;
else
cout << c;
return 0;
}
```
???جواب های صحیح سوالات تمرین شماره 4️⃣ ??
?? ??? ?? ????? ?
We comply with Telegram's guidelines:
- No financial advice or scams
- Ethical and legal content only
- Respectful community
Join us for market updates, airdrops, and crypto education!
Last updated 8 months, 4 weeks ago
[ We are not the first, we try to be the best ]
Last updated 11 months, 1 week ago
FAST MTPROTO PROXIES FOR TELEGRAM
ads : @IR_proxi_sale
Last updated 7 months, 1 week ago