Programs :
Sum of two numbers
// You are using GCC
#include<iostream>
using namespace std;
void display()
{
int a,b;
cin>>a;
cin>>b;
cout<<a+b;
}
int main()
{
display();
}
# You are using Python
x=input()
print("value of x is",x);
print("value of x is {:.2f}".format(float(input())))
x=x+","+input()
print("value of x and y is",x)
No comments:
Post a Comment