Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

int a, b, p, c;

Console.WriteLine("Unesi jedinice u formulu \n");


a = Convert.ToInt32(Console.ReadLine());
b = Convert.ToInt32(Console.ReadLine());
p = Convert.ToInt32(Console.ReadLine());
c = 2 * (b + 2 * p) + 2 * (a + 2 * p);
Console.Write("a={0}b={1}p={2}c={3}", a, b, p, c);
Console.Read();
int n, J, D, S, n1;
Console.WriteLine("Unesi trocifreni broj \n");
n = Convert.ToInt32(Console.ReadLine());
J = n % 10;
D = n / 10 % 10;
S = n / 100;
Console.WriteLine("D={0} J={1} S={2}", J , D , S);
//?????? ???????? ????;
n1 = D * 100 + J * 10 + S;
Console.Write("n1="+n1);
Console.Read();

You might also like