bahasa pemrograman ii
Download
Skip this Video
Download Presentation
BAHASA PEMROGRAMAN II

Loading in 2 Seconds...

play fullscreen
1 / 8

BAHASA PEMROGRAMAN II - PowerPoint PPT Presentation


  • 135 Views
  • Uploaded on

BAHASA PEMROGRAMAN II. DEDED RAMAD KAMDA, S. KOM. DESAIN. INPUT NAMA. INPUT NILAI UTS. INPUT NILAI UAS. TAMPILKAN HASIL. PROSES. Nama. INPUT. INPUT. NoBP. Nilai UTS. INPUT. Niilai UAS. INPUT. Nilai Akhir. Hasil (output). HASIL. Program 1. #include <iostream.h>

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' BAHASA PEMROGRAMAN II' - nemo


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
bahasa pemrograman ii

BAHASA PEMROGRAMAN II

DEDED RAMAD KAMDA, S. KOM

desain
DESAIN

INPUT NAMA

INPUT NILAI UTS

INPUT NILAI UAS

TAMPILKAN HASIL

PROSES

slide3

Nama

INPUT

INPUT

NoBP

Nilai UTS

INPUT

Niilai UAS

INPUT

NilaiAkhir

Hasil (output)

program 1
Program 1

#include <iostream.h>

#include <conio.h>

#include <stdio.h>

main()

{

char nama[30],nobp[16];

int nilaiuts, nilaiuas;

float na,nb;

clrscr();

cout<<"Nama Mahasiswa :";

gets(nama);

cout<<"Nilai UTS :";

cin>>nilaiuts;

cout<<"Nilai UAS :";

cin>>nilaiuas;

na=nilaiuts+nilaiuas;

nb=na/2;

cout<<"Nilai Akhir="<<nb<<endl;

getch();

}

slide6

INPUT NAMA

(gets)

INPUT NILAI UTS(cin)

INPUT NILAI UAS(cin)

TAMPILKAN HASIL (cout)

PROSES

pembahasan
PEMBAHASAN
  • UNTUK MENAMPILKAN DATA ( COUT<<“”;)
  • UNTUK INPUT (CIN>> ;) (GETS(VARIABEL);)

#include <iostream.h> CIN,COUT

#include <conio.h> GETCH()

#include <stdio.h> GETS()

ad