December 2019 1 33 Report
Program jenis apa, Untuk memperoleh apa?

#include
#include
int main()
{
int data[10] = {3,23,10,44,87,8,29,37,26,21};
int max, i;
cout << “Data pada array : \n”;
for (i=0; i<10; i++)
{
cout << data[i] << “\n”;
}
max = data[0];
for (i=1; i<10; i++)
{
if (data[i] > max)
max = data[i];

More Questions From This User See All

Recommend Questions



Life Enjoy

" Life is not a problem to be solved but a reality to be experienced! "

Get in touch

Social

© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.