fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4.  
  5. cout<<"M anggi pratama\n";
  6. int arr[100];
  7. for(int i=0;i<100;i++){
  8. cout<<arr[i]<<endl;
  9. arr[i]=(i+1)*2;
  10. }
  11. cout<<"angka ke 24 adalah="<<arr[23]<<endl;
  12. }
  13.  
Success #stdin #stdout 0s 5312KB
stdin
Standard input is empty
stdout
M anggi pratama
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
-1774784736
5273
0
0
-1774809088
5273
-1774833632
5273
-1774789408
5273
-1774811784
5273
-1776075514
5273
-1774784736
5273
558843168
32765
-1774784736
5273
6
0
6
16
1949181184
2107559616
0
0
-1774789192
5273
-1774789192
5273
-1774788544
5273
-1774780780
5273
-1775413301
5273
-1774789400
5273
-1775640650
5273
-1774788824
5273
-1774789400
5273
-1774790752
5273
-1775639648
5273
-1774788832
5273
-1774789120
5273
-1774788832
5273
-1775999496
5273
72703
0
-1776885496
5273
-1775999344
5273
-1778600031
5273
-394010616
21962
-394010319
21962
1
0
2
0
angka ke 24 adalah=48