Untitled

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; #include <cmath> void ab(int a[] , int size){ for (size_t i = 0 ; i < size ; i++){ if (a[i] < 0 ){ a[i] = abs(a[i]); } cout << a[i] << endl ; } } int main() { int a[15] , b[12] = { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 }; for (size_t i = 0 ; i < 15; i++){ cin >> a[i]; } ab(a,15); cout << endl << endl ; ab(b,12); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines