PRACTICAL 1
Name: Kale Swaraj Sunil
Roll no: 20[A1] OOPs
#include <iostream.h>
#include<conio.h>
void main()
int x,y;
cout<<"Enter x value:";
cin>>x;
y=5*x-5;
cout<<"Value of y :"<<y;
getch();
Output:
PRACTICAL 1
Name: Kale Swaraj Sunil
Roll no: 20[A1] OOPs
#include <iostream>
using namespace std;
int main()
int a;
cout << "Enter value: ";
cin >> a;
if(a > 10)
cout << "hi";
else
cout << "bye";
return 0;
Output:
PRACTICAL 1
Name: Kale Swaraj Sunil
Roll no: 20[A1] OOPs
#include <iostream>
#include<math.h>
using namespace std;
int main()
int a,b,c,X;
cout<<"Enter the value of a: ";
cin>>a;
cout<<"Enter the value of b: ";
cin>>b;
cout<<"Enter the value of c:
cin>>c;
X=(-b-(b^2-4ac))/2*a;
cout<<"Value of X:"<<X;
getch();
Output: