0% found this document useful (0 votes)
5 views3 pages

Swaraj Practical 1 (C++)

Uploaded by

swarajsk2008
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

Swaraj Practical 1 (C++)

Uploaded by

swarajsk2008
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

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:

You might also like