Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Funkcija
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a = 0;
- int b = 1000;
- double x;
- double y;
- string val;
- Console.Write("Unesite vrednos za X: ");
- val = Console.ReadLine();
- x = Convert.ToInt32(val);
- if (x < a || x > b)
- Console.WriteLine("Broj je van granica!");
- else
- {
- y = 5 * x / 2;
- Console.WriteLine("Vrednost za Y je: " + y);
- };
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement