Selasa, 04 November 2014

Politeknik Elektronika Negeri Surabaya 2014


Pagi hari di Cuban Talun, Batu, Malang




Anggota Komunitas Webdev 2014




Bersama kakak-kakak webdev


 Ladies Tekkom B 2014



Kunjungan ke kakak kelas 2013




Tekkom B Ceria 2014 di Lab



Acara Pengkaderan Departemen (PD) ITCE 2014



Ladies Tekkom B Lagi :-)



Tekkom B Ceria 2014



Kunjungan bersama kakak kelas lagi :-)



Saat Praktikum Oscilloscope


Saya :-)




Program menentukan tahun kabisat dengan menggunakan Bahasa C

#include <stdio.h>
#include <conio.h>

int main()
{
    int x;

    printf("\t\tPROGRAM MENENTUKAN TAHUN KABISAT\t\t\n");

    ulang :
    printf("\nMasukkan tahun= ");
    scanf("%d", &x);

    if (x<1600 || x>2400)
    printf("Masukkan tahun antara 1600-2400");

    if (x>=1600 && x<=2400)
    {
        if(x%100==0)
        {
            if(x%400==0)
            printf("%d termasuk tahun kabisat",x);
            else
            printf("%d bukan termasuk tahun kabisat",x);
        }

        else if(x%400!=0)
        {
            if(x%4==0)
            printf("%d termasuk tahun kabisat",x);
            else
            printf("%d bukan termasuk tahun kabisat",x);
        }
    }
    goto ulang;
    getch();
}


Membuat huruf menggunakan Bahasa C

#include <stdio.h>
#include <conio.h>

int main()
{
    int i, j, k, l;
    static int data_huruf[3][8][8][8] =
    {
        {
            {1,1,0,0,0,0,0,1},
            {1,0,1,0,0,0,0,1},
            {1,0,0,1,0,0,0,1},
            {1,0,0,0,1,0,0,1},
            {1,0,0,0,0,1,0,1},
            {1,0,0,0,0,0,1,1},
            {1,0,0,0,0,0,0,1},
            {1,0,0,0,0,0,0,1},
        },
        {
            {0,0,0,1,1,0,0,0},
            {0,0,0,0,0,0,0,0},
            {0,0,0,1,1,0,0,0},
            {0,0,0,1,1,0,0,0},
            {0,0,0,1,1,0,0,0},
            {0,0,0,1,1,0,0,0},
            {0,0,0,1,1,0,0,0},
            {0,0,0,1,1,0,0,0},

        },
        {
            {0,1,1,1,1,1,0,0},
            {0,1,0,0,0,1,0,0},
            {0,1,0,0,0,1,0,0},
            {1,1,1,1,1,1,1,0},
            {1,1,0,0,0,0,1,0},
            {1,1,0,0,0,0,1,0},
            {1,1,0,0,0,0,1,0},
            {0,0,0,0,0,0,0,0},
        }
    };

/*Tampilkan huruf*/
    for (i=0; i<3; i++)
    {
        for (j=0; j<8; j++)
        {
            for (k=0; k<8; k++)
            {
                for (l=0; l<8; l++)
                if (data_huruf[i][j][k][l])
                    putchar('\xDB');
                else
                    putchar(' ');
            }
            puts("");
        }
        puts("");
    }
    getch();
}