Kamis, 03 Desember 2009

Dasar-Dasar C++ "Bg.. I"



#include <iostream.h>
#include <conio.h>

void main()
{
            int a=100;
   int b;
   float c;
   b = a/2; c=b/2;
   cout<<"Nilai b = "<<b<<" Nilai c = "<<c;
   //b=0;
   c=(a%b);
   cout<<"Nilai c = "<<c;
   c = a + 30;
   cout<<"Nilai c = "<<c;
   getch();
   return;
}


Tidak ada komentar:

Posting Komentar