Modul 2.5
http://www.youtube.com/watch?v=f_X9jVTHCL4
Listing Program
// Modul 2-5 : Latihan Tipe Data
// Limit.cpp
// Nama : Wulan Kandiani Kusumah Wardani
// NRP : 49013036
#include <iostream>
#include <limits>
using namespace std;
int main()
{
std:: cout << " Praktikum Pemrograman Visual C++";
std:: cout << " \nDikerjakan Oleh : Wulan Kandiani Kusumah Wardani\n";
std:: cout << " \nNRP : 49013036 \n";
std:: cout << "=================================\n";
std:: cout << " TIPE DATA \n";
std:: cout << "=================================\n ";
std:: cout << " minimum char = " << CHAR_MIN << endl;
std:: cout << " maximum char = " << CHAR_MAX << endl;
std:: cout << " minimum signed char = "<<SCHAR_MIN<<endl;
std:: cout << " maximum signed char = "<<SCHAR_MAX<<endl;
std:: cout << " maximum unsigned char ="<<UCHAR_MAX<<endl;
std:: cout << " minimum short = " << SHRT_MIN << endl;
std:: cout << " maximum short = " << SHRT_MAX << endl;
std:: cout << " minimum int = " << INT_MIN << endl;
std:: cout << " maximum int = " << INT_MAX << endl;
std:: cout << " minimum long = " << LONG_MIN << endl;
std:: cout << " maximum long = " << LONG_MAX << endl;
std:: cout << " maximum unsigned short="<<USHRT_MAX<<endl;
std:: cout << " maximum unsigned = " << UINT_MAX << endl;
std:: cout << " maximum unsigned long ="<<ULONG_MAX<<endl;
system ("pause");
return 0;
}
http://www.youtube.com/watch?v=f_X9jVTHCL4
Listing Program
// Modul 2-5 : Latihan Tipe Data
// Limit.cpp
// Nama : Wulan Kandiani Kusumah Wardani
// NRP : 49013036
#include <iostream>
#include <limits>
using namespace std;
int main()
{
std:: cout << " Praktikum Pemrograman Visual C++";
std:: cout << " \nDikerjakan Oleh : Wulan Kandiani Kusumah Wardani\n";
std:: cout << " \nNRP : 49013036 \n";
std:: cout << "=================================\n";
std:: cout << " TIPE DATA \n";
std:: cout << "=================================\n ";
std:: cout << " minimum char = " << CHAR_MIN << endl;
std:: cout << " maximum char = " << CHAR_MAX << endl;
std:: cout << " minimum signed char = "<<SCHAR_MIN<<endl;
std:: cout << " maximum signed char = "<<SCHAR_MAX<<endl;
std:: cout << " maximum unsigned char ="<<UCHAR_MAX<<endl;
std:: cout << " minimum short = " << SHRT_MIN << endl;
std:: cout << " maximum short = " << SHRT_MAX << endl;
std:: cout << " minimum int = " << INT_MIN << endl;
std:: cout << " maximum int = " << INT_MAX << endl;
std:: cout << " minimum long = " << LONG_MIN << endl;
std:: cout << " maximum long = " << LONG_MAX << endl;
std:: cout << " maximum unsigned short="<<USHRT_MAX<<endl;
std:: cout << " maximum unsigned = " << UINT_MAX << endl;
std:: cout << " maximum unsigned long ="<<ULONG_MAX<<endl;
system ("pause");
return 0;
}
Tidak ada komentar:
Posting Komentar