SlideShare a Scribd company logo
1 of 1
using System;
class gread{
      static void Main() {
               Console.Write("Input your score = = >> ");
               double score = double.Parse(Console.ReadLine());
               if (score<=49)
               Console.WriteLine(“Gread 0”);
               else if (score<=54)
               Console.WriteLine(“Gread 1”);
               else if (score<=59)
               Console.WriteLine(“Gread 1.5”);
               else if (score<=64)
               Console.WriteLine(“Gread 2”);
               else if (score<=69)
               Console.WriteLine(“Gread 2.5”);
               else if (score<=74)
               Console.WriteLine(“Gread 3”);
               else if (score<=79)
               Console.WriteLine(“Gread 3.5”);
               else
               Console.WriteLine(“Gread 4”);
               System. Console.ReadLine();
}
}

More Related Content

Viewers also liked

Curso plan de marketing en internet
Curso plan de marketing en internetCurso plan de marketing en internet
Curso plan de marketing en internet
Grupus
 
Learning package-baitang-7-ikalawang-markahan-part-2 (2)
Learning package-baitang-7-ikalawang-markahan-part-2 (2)Learning package-baitang-7-ikalawang-markahan-part-2 (2)
Learning package-baitang-7-ikalawang-markahan-part-2 (2)
Dona Baes
 
5.5 ws answers
5.5 ws answers5.5 ws answers
5.5 ws answers
leblance
 

Viewers also liked (9)

Tipos de memoria
Tipos de memoriaTipos de memoria
Tipos de memoria
 
Technologietransfer an der Hochschule Harz
Technologietransfer an der Hochschule HarzTechnologietransfer an der Hochschule Harz
Technologietransfer an der Hochschule Harz
 
Upland Rice Production As Influenced by the Organic and Inorganic Applicatio...
 Upland Rice Production As Influenced by the Organic and Inorganic Applicatio... Upland Rice Production As Influenced by the Organic and Inorganic Applicatio...
Upland Rice Production As Influenced by the Organic and Inorganic Applicatio...
 
Interaksi manusia komputer 3
Interaksi manusia komputer 3Interaksi manusia komputer 3
Interaksi manusia komputer 3
 
MongoDB in Simple and Easy Steps
MongoDB in Simple and Easy StepsMongoDB in Simple and Easy Steps
MongoDB in Simple and Easy Steps
 
Curso plan de marketing en internet
Curso plan de marketing en internetCurso plan de marketing en internet
Curso plan de marketing en internet
 
Learning package-baitang-7-ikalawang-markahan-part-2 (2)
Learning package-baitang-7-ikalawang-markahan-part-2 (2)Learning package-baitang-7-ikalawang-markahan-part-2 (2)
Learning package-baitang-7-ikalawang-markahan-part-2 (2)
 
Presentación1 francisco
Presentación1 franciscoPresentación1 francisco
Presentación1 francisco
 
5.5 ws answers
5.5 ws answers5.5 ws answers
5.5 ws answers
 

More from ชญานิษฐ์ ทบวัน

สำเนาของ รายชื่อทำงานกับครู2
สำเนาของ รายชื่อทำงานกับครู2สำเนาของ รายชื่อทำงานกับครู2
สำเนาของ รายชื่อทำงานกับครู2
ชญานิษฐ์ ทบวัน
 

More from ชญานิษฐ์ ทบวัน (20)

Pre o-net job3
Pre o-net job3Pre o-net job3
Pre o-net job3
 
Pre o-net job3 ชุด สอง
Pre o-net job3 ชุด สองPre o-net job3 ชุด สอง
Pre o-net job3 ชุด สอง
 
O net 52 M. 3 Tecnology
O net 52 M. 3 TecnologyO net 52 M. 3 Tecnology
O net 52 M. 3 Tecnology
 
ScoreMiddle156
ScoreMiddle156ScoreMiddle156
ScoreMiddle156
 
scoremidle156
scoremidle156scoremidle156
scoremidle156
 
สำเนาของ รายชื่อทำงานกับครู2
สำเนาของ รายชื่อทำงานกับครู2สำเนาของ รายชื่อทำงานกับครู2
สำเนาของ รายชื่อทำงานกับครู2
 
Flowchart
FlowchartFlowchart
Flowchart
 
Flowchart6
Flowchart6Flowchart6
Flowchart6
 
Flowchart5
Flowchart5Flowchart5
Flowchart5
 
Flowchart3
Flowchart3Flowchart3
Flowchart3
 
Flowchart4
Flowchart4Flowchart4
Flowchart4
 
Flowchart2
Flowchart2Flowchart2
Flowchart2
 
Flowchart1
Flowchart1Flowchart1
Flowchart1
 
ใบงานที่ 1
ใบงานที่ 1ใบงานที่ 1
ใบงานที่ 1
 
report M.4
report M.4report M.4
report M.4
 
Ex 1
Ex  1Ex  1
Ex 1
 
ตัวอย่างทำหัวข้อ Powerpoint
ตัวอย่างทำหัวข้อ Powerpointตัวอย่างทำหัวข้อ Powerpoint
ตัวอย่างทำหัวข้อ Powerpoint
 
Powerpoint
PowerpointPowerpoint
Powerpoint
 
วิธีการทำ Power point
วิธีการทำ Power pointวิธีการทำ Power point
วิธีการทำ Power point
 
วิธีการใช้โปรแกรม Microsoft word 5
วิธีการใช้โปรแกรม Microsoft word 5วิธีการใช้โปรแกรม Microsoft word 5
วิธีการใช้โปรแกรม Microsoft word 5
 

โปรแกรมแปดเกรด

  • 1. using System; class gread{ static void Main() { Console.Write("Input your score = = >> "); double score = double.Parse(Console.ReadLine()); if (score<=49) Console.WriteLine(“Gread 0”); else if (score<=54) Console.WriteLine(“Gread 1”); else if (score<=59) Console.WriteLine(“Gread 1.5”); else if (score<=64) Console.WriteLine(“Gread 2”); else if (score<=69) Console.WriteLine(“Gread 2.5”); else if (score<=74) Console.WriteLine(“Gread 3”); else if (score<=79) Console.WriteLine(“Gread 3.5”); else Console.WriteLine(“Gread 4”); System. Console.ReadLine(); } }