#include iostream#include string#include algorithmusing namespace std;int main(){string s = "spaces in text";s.erase(remove(s.begin(), s.end(), ' ' ), s.end() ) ;cout s endl;}
a = 2b = 3result = (a + b) ** 2print(f"({a} + {b})^2 = {result}")
#include iostreamusing namespace std;int main() {float l, b,p;cinlb;p = 2*l+b;cout"Perimeter=" p;}
#include stdio.hint main() {double a, b, product;printf("Enter two numbers: ");scanf("%lf %lf", &a, &b);product = a * b;printf("Product = %.2lf", product);return 0;}
import arraya = [2, 4, 6, 8, 10, 12]print(a[0])print(a[-5])print(a[-1])print(a[0])