-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
39 lines (28 loc) · 995 Bytes
/
main.cpp
File metadata and controls
39 lines (28 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <iostream>
using namespace std;
int main()
{
char symbol = 'T';
cout << symbol << endl;
int num1 = 100;
cout << num1 << endl;
float num2 = 10.10;
cout << num2 << endl;
double num3 = 50.23;
cout << num3 << endl;
int number = 5;
cout<<number<<endl;
int array[5] = {5, 10, 15, 20, 30};
int sum = array[0] + array[1] + array[2] + array[3] + array[4];
cout << sum << endl;
int average = sum / number;
cout << average << endl;
cout << "ჯამი: " << sum << endl;
cout << "საშუალო არითმეტიკული: " << average << endl;
return 0;
}