Advertisement
Hamiresss

treino01

Jul 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.84 KB | None | 0 0
  1. /*
  2.  * Created by SharpDevelop.
  3.  * User: Angelo
  4.  * Date: 22/07/2018
  5.  * Time: 14:18
  6.  *
  7.  * To change this template use Tools | Options | Coding | Edit Standard Headers.
  8.  */
  9. using System;
  10.  
  11. namespace treino
  12. {
  13.     class Program
  14.     {
  15.         public static void Main(string[] args)
  16.         {
  17.             int a=0, b=0,c=0,d=0, media=0;
  18.            
  19.            
  20.            
  21.             Console.WriteLine("digite sua 1ª nota:");
  22.             a = int.Parse(Console.ReadLine());
  23.             Console.WriteLine("digite sua 2ª nota:");
  24.             b = int.Parse(Console.ReadLine());
  25.             Console.WriteLine("digite sua 3ª nota:");
  26.             c = int.Parse(Console.ReadLine());
  27.             Console.WriteLine("digite sua 4ª nota:");
  28.             d = int.Parse(Console.ReadLine());
  29.            
  30.             media = (a+b+c+d)/4;
  31.             Console.WriteLine("sua media e': {0}",media);
  32.            
  33.            
  34.             Console.Write("Press any key to continue . . . ");
  35.             Console.ReadKey(true);
  36.         }
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement