Benjail

1.5

Aug 22nd, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.42 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApp1
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int numberofpictures = 52;
  10.             int linelength = 3;
  11.             int numberoflines = numberofpictures / linelength;
  12.             int ostatok = numberofpictures % linelength;
  13.             Console.WriteLine("numberoflines="+ numberoflines+ "\nostatok=" + ostatok);
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment