Typedef

#include<iostream.h>

int main(){
//mengaliaskan type data
typedef int a;
typedef float b;
typedef char c;

//mendeklarasikan variabel;
a bil1 = 10;
b bil2 = 25,55;
c karakter = 'A'

cout << "Hasillnya : ";
cout << "\nBilangan integer : " << bil1;
cout << "\nBilangan pecahan : " << bil2;
cout << "\nKarakter : " << karakter;
}

Posted in . Bookmark the permalink. RSS feed for this post.

Leave a Reply

Search

Support by Blogger ITN | Converted by LiteThemes.com