Program C
Membuat variabel integer, float, double, dan char
Source Code :
#include<stdio.h>
#include<conio.h>
void main ()
{
int bil_bulat = 6786590 ;
float bil_pecahan1 = 329.2777f ;
double bil_pecahan2 = 238.2e+2 ;
char karakter = 'R' ;
printf("PRAKTIKUM TIPE DATA \nPENGGUNAAN VARIABEL\n\n");
printf ("bilangan bulat = %d\n", bil_bulat);
printf ("bilangan pecahan = %f\n", bil_pecahan1);
printf ("bilangan pecahan = %f\n", bil_pecahan2);
printf ("karakter = %c\n", karakter);
getch ();
}
Screenshot :
Tidak ada komentar:
Posting Komentar