Rabu, 06 Oktober 2010

tugas algoritma part 2


#include <conio.h>
#include <stdio.h>
 main(){
 int B;
 clrscr();
 cout<<"MENENTUKAN NILAI\n";
 cout<<"__________________\n ";
 cout<<"Masukkan Nilai=";cin>>B;
  if ( B<= 39 )
  {
   cout<<"E";
   }
   else{
    if ( B>=40 && B<=55 )
   {
   cout<<"D";
    }
    else {
    if ( B>=56 && B<=64 )
   {
   cout<<"C";
   }
   else {
   if ( B>=65 && B<=79 )
  {
 cout<<"B";
  }
 else {
 if ( B>=80 && B<=100 )
{
 cout<<"A";
 }
 }
 }
 }
 }
cout<<"\n\n....kunjungi blog adingwirabangsa.blogspot.com....";
getch();
}

Tidak ada komentar:

Posting Komentar