A+B: Difference between revisions

518 bytes added ,  1 year ago
Added Terraform Implementation
(Added Terraform Implementation)
Line 5,308:
close $in
close $out</lang>
 
=={{header|Terraform}}==
<lang hcl>
#Aamrun, August 15th, 2022
 
variable "a" {
type = number
}
 
variable "b" {
type = number
}
 
output "a_plus_b" {
value = var.a + var.b
}
</lang>
{{out}}
<pre>
$ terraform apply -var="a=136" -var="b=745" -auto-approve
 
Changes to Outputs:
+ a_plus_b = 881
 
You can apply this plan to save these new output values to the Terraform state, without changing any real infrastructure.
 
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
 
Outputs:
 
a_plus_b = 881
$
</pre>
 
=={{header|TI-83 BASIC}}==
503

edits