This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <conio.h> | |
using namespace std; | |
//11.12.5800 | |
int main() { | |
//Deklarasi variabel | |
string nama[5], cari; | |
int jumlah = sizeof(nama) / sizeof(nama[5]), ketemu = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include <iostream> | |
int main(int argc, char const *argv[]) { | |
int arr[6]={5,2,10,50,70,60}, | |
swap, | |
jumlah = sizeof(arr)/sizeof(arr[0]); | |
std::cout << "Data yang akan diurutkan : " << std::endl; | |
for (int i = 0; i < jumlah; i++) { | |
std::cout << "arr["<< i <<"] = "<< arr[i] << std::endl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
int main(int argc, char const *argv[]) { | |
int arr[6] = {2,0,10,5,70,16}, | |
max, | |
min, | |
jumlah = sizeof(arr)/sizeof(arr[0]); | |
std::cout << "Data yang akan di sorting : " << std::endl; | |
for (int i = 0; i < jumlah; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace relearn | |
{ | |
class Program | |
{ |
NewerOlder