VIDEO TUTORIAL
SOURCE CODE
/*========================================
Latihan Tipe data
Modul 2-5
Nama : Royan Rodiana
Nim : 49013031
==========================================
*/
#include <iostream> //mengaktifkan input-output
#include <limits>
using namespace std; //standard library
int main() //progrm utama
{
cout << "Praktikum Pemrograman Visual C++\n";
cout << "Dikerjakan Oleh : Royan Rodiana \n";//tampilkan di layar
cout << "Nim : 49013031\n\n";
cout << "=================================";
cout << "TIPE DATA";
cout << "=================================\n\n";
cout << " minimum char = " << CHAR_MIN << endl; //nilai minimum char
cout << " maximum char = " << CHAR_MAX << endl; //nilai maksimal char
cout << " minimum signed char = "<<SCHAR_MIN<<endl; //nilai min signed char
cout << " maximum signed char = "<<SCHAR_MAX<<endl; //nilai max dari signed char
cout << " maximum unsigned char ="<<UCHAR_MAX<<endl; //nilai max unsign char
cout << " minimum short = " << SHRT_MIN << endl; //nilai min shor int
cout << " maximum short = " << SHRT_MAX << endl; //nilai maksimum short
cout << " minimum int = " << INT_MIN << endl; //nilai minimum integer
cout << " maximum int = " << INT_MAX << endl; //nilai maksimum integer
cout << " minimum long = " << LONG_MIN << endl; //nilai min dari long int
cout << " maximum long = " << LONG_MAX << endl; //nilai max dari long int
cout << " maximum unsigned short="<<USHRT_MAX<<endl;//nilai max unsigned short
cout << " maximum unsigned = " << UINT_MAX << endl; //nilai max unsigned
cout << " maximum unsigned long ="<<ULONG_MAX<<endl<<endl; //nilai max dari unsgn long
system ("Pause");//mempause tampilan
return 0; //mengembalikan nilai 0,akhir dari program
}
OUTPUT
0 komentar:
Posting Komentar