Advertisement
Guest User

Minimum

a guest
Oct 18th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1.  Console.WriteLine("Unesite dva cela broja: ");
  2.             int br1 = Convert.ToInt32(Console.ReadLine());
  3.             int br2 = Convert.ToInt32(Console.ReadLine());
  4.  
  5.             for (int i = 0; i < 2; i++)
  6.             {
  7.                 if (br1<br2)
  8.                 {
  9.                     Console.WriteLine("Manji broj je {0}", br1);
  10.                 }
  11.                 else if (br2<br1)
  12.                 {
  13.                     Console.WriteLine("Manji broj je {0}", br2);
  14.                 }                           //sve radi, samo mi izbacuje 2 identicne linije cw na kraju umesto jedne
  15.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement