dart: arithmetic operators

void main() { var num1 = 101; var num2 = 2; var res = 0; res = num1+num2; print("Addition: ${res}"); res = num1-num2; print("Subtraction: ${res}"); res = num1*num2; print("Multiplication: ${res}"); res = num1/num2; print("Division: ${res}"); res = num1~/num2; print("Division returning Integer: ${res}"); res = num1%num2; print("Remainder: ${res}"); num1++; print("Increment: ${num1}"); num2--; print("Decrement: ${num2}"); }

No comments:

I Quit AeroMedLab

Watch now (2 mins) | Today is my last day at AeroMedLab ͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­...

Contact Form

Name

Email *

Message *