How do I take integer input from user in c#? -
this question has answer here:
- how take int or double type input in c# in console? 5 answers
- getting integer console input 4 answers
- how can validate console input integers? 9 answers
in case, if want take a
, b
inputs user.
using system; class area { static void main(){ int a=3,b=29; console.writeline("the area of rectangle : " + a*b); } }
Comments
Post a Comment