Sabtu, 02 Mei 2015

Contoh coding C++ Tentang Menyatakan Cinta

 CONTOH CODING C++

Haloo guys , kembali lagi di blog ini ... Kali ini saya akan mengupload tentang coding yang sangat berbeda dengan coding coding yang sebelumnya sudah saya upload ... Yaitu "CODING UNTUK MENYATAKAN CINTA" Langsung saja ...
 Selamat Mencoba !!!

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

int main()
{
    int pilihan;
    float nama,jawaban;
    printf("program integrated\n");
    printf("==================\n");
    printf("\n");
    printf("[1] nyatakan cinta\n");
    printf("[2] jawaban\n");
    printf("[3] program by\n");
    printf("\n");
    printf("pilihan anda (1-3)????");
    scanf("%d",&pilihan );
    switch(pilihan)
    {
                    case 1:
                         system("cls");
                         printf("==========================================\n");
                         printf("               I Love you                 \n");
                         printf("==========================================\n");
                         printf("                \n",nama);
                         scanf("                %d               ",&nama);
                         printf("==========================================\n");
                         getch();
                         break;
                    case 2:
                         system("cls");
                         printf("==========================================\n");
                         printf("Jawaban \n");
                         scanf("                    %d",&jawaban);
                         printf("==========================================\n");
                         getch();
                         break;
                    case 3:
                         system("cls");
                         printf("==========================================\n");
                         printf("Terima Kasih Telah Menggunakan Program ini\n");
                         printf("==========================================\n");
                         printf("       By   Jayus Ardiyanto               \n");
                         printf("==========================================\n");
    }
                         getch();
}

   

Tidak ada komentar:

Posting Komentar