PROGRAM:
#include<iostream>
using namespace std;
void display();
void display()
{
int a,b;
cin >> a;
cin >> b;
cout << a+b;
}
int main()
{
display();
return 0;
}
PROGRAM:
#include<iostream>
#include<stdio.h>
using namespace std;
int main()
{
int x,y;
float f;
cin >> x;
cin >> f;
cin >> y;
cout << "value of x is " << x << endl;
printf("value of x is %.2f\n",f);
cout << "value of x and y is " << x << ","<< y <<endl;
}
No comments:
Post a Comment