Advertisement
Guest User

Untitled

a guest
Jun 8th, 2021
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.72 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace lb1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int[] A = new [] { 1234, 1302, 1245, 1198, 1229, 1280 };
  14.             int i;
  15.             for (i = 1; i <= 6; i = i + 1) ;
  16.            int[] B = new int[6];
  17.  
  18.             if (A[i] < 0 )
  19.             { B[i] = (-A[i]); }
  20.             if(0 <= A[i] )
  21.                { B[i] = A[i]; }            
  22.                      
  23.             int[] P = new int[6];
  24.  
  25.             P[i] = B[i] - B[i - 1];
  26.  
  27.             int V = (P[i + 1] / B[i]) * 100;
  28.  
  29.             Console.WriteLine();
  30.             Console.ReadLine();
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement