English
Open in Telegram

Message#include <iostream>

5 July 2024
4
#include <iostream> using namespace std; int main() { float x[9][9], s = 0.0; for (int i = 0; i < 9; ++i) { for (int j = 0; j < 9; ++j) { x[i][j] = i * 9 + j; } } cout << "Berilgan matritsa:" << endl; for (int i = 0; i < 9; ++i) { for (int j = 0; j < 9; ++j) { cout << x[i][j] << "\t "; } cout << endl; } cout << endl; s = 0.0; for (int i = 0; i < 9; ++i) { s += x[0][i]; s += x[8][i]; if (i != 0 && i != 8) { s += x[i][0]; s += x[i][8]; } } cout << "a shakl natijasi = " << s << endl; s = 0.0; for (int i = 0; i < 9; ++i) { s += x[i][i]; s += x[i][8 - i]; } cout << "b shakl natijasi = " << s << endl; s = 0.0; for (int i = 1; i < 8; ++i) { for (int j = 0; j < 9; ++j) { if (j < i || j > 8 - i) { s += x[i][j]; } } } cout << "d shakl natijasi = " << s << endl; s = 0.0; for (int i = 0; i < 9; ++i) { for (int j = 0; j < 9; ++j) { if (abs(i - 4) + abs(j - 4) <= 4) { s += x[i][j]; } } } cout << "e shakl natijasi = " << s << endl; return 0; }

Nearby in the feed

ZZafar Ziyatov👍44Photo
this message
MMalikaFileMMalikaIkkitasni hqm 25 chsni
CC++ vs PythonC++ vs Python@cpp_vs_python · group · Tech
114members39 409messages in the index
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count