Menentukan Mutu Nilai

Posted: April 17, 2010 in Daspro
Tags:

#include<stdio.h>

#include<iostream.h>

#include<conio.h>

void main()

{

char nama[40], jurusan[60];

int nilai;

long int nim;

clrscr();

cout<<“Masukan Nama Anda    : “;cin>>nama;

cout<<“Masukan NIM Anda     : “;cin>>nim;

cout<<“Masukan Jurusan Anda : “;cin>>jurusan;

cout<<“Masukan Nilai Anda   : “;cin>>nilai;

if(nilai>=90&&nilai<=100)

cout<<“Mutu Nilai = A”;

else if(nilai>=75&&nilai<89)

cout<<“Mutu Nilai = B”;

else if(nilai>=55&&nilai<74)

cout<<“Mutu Nilai = C”;

else if(nilai>=35&&nilai<54)

cout<<“Mutu Nilai = D”;

else if(nilai>=0&&nilai<34)

cout<<“Mutu Nilai = E”;

getch();

}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s