First Commit

This commit is contained in:
2021-04-25 15:28:50 +05:30
commit c3dbda79c4
22 changed files with 138 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
// WAP to perform arithmetic operations (addition, subtraction, multiplication, division) by using shorthand operators.
void main() {
int a,b;
a=5;
b=5;
printf("The value of a=%d \nThe value of b=%d\n",a,b);
a+=b;
printf("The sum of a & b = %d\n",a);
a-=b;
printf("The difference of a & b = %d\n",a);
a*=b;
printf("The product of a & b = %d\n",a);
a/=b;
printf("The quotient of a & b = %d\n",a);
}