Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Created by SharpDevelop.
- * User: Angelo
- * Date: 22/07/2018
- * Time: 14:18
- *
- * To change this template use Tools | Options | Coding | Edit Standard Headers.
- */
- using System;
- namespace treino
- {
- class Program
- {
- public static void Main(string[] args)
- {
- int a=0, b=0,c=0,d=0, media=0;
- Console.WriteLine("digite sua 1ª nota:");
- a = int.Parse(Console.ReadLine());
- Console.WriteLine("digite sua 2ª nota:");
- b = int.Parse(Console.ReadLine());
- Console.WriteLine("digite sua 3ª nota:");
- c = int.Parse(Console.ReadLine());
- Console.WriteLine("digite sua 4ª nota:");
- d = int.Parse(Console.ReadLine());
- media = (a+b+c+d)/4;
- Console.WriteLine("sua media e': {0}",media);
- Console.Write("Press any key to continue . . . ");
- Console.ReadKey(true);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement