-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.cpp
More file actions
95 lines (74 loc) · 2.25 KB
/
Copy pathstart.cpp
File metadata and controls
95 lines (74 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#include <iostream>
#define PI 3.14
#include <string>
using namespace std;
int main(){
//Write a C++ program to take your name and age as input and print them.
// string name;
// int age;
// cin>>name;
// cin>>age;
// cout<<"Your name is "<<name<<" and your age is "<<age<<endl;
//Take two integers as input and print their sum
// int a;
// int b;
// cin>>a;
// cin>>b;
// cout<<a+b<<endl;
//Write a program to input a character and display it back to the user.
// char FirstLetterOfName;
// cin>>FirstLetterOfName;
// cout<<FirstLetterOfName;
//Input two number and print their sum , difference,product
// int a;
// int b;
// cin>>a;
// cin>>b;
// cout<<a+b<<endl;
// cout<<a-b<<endl;
// cout<<a*b<<endl;
//Input the length and breadth of a rectangle.Calculate and print
// int length;
// int breath;
// cin>>length;
// cin>>breath;
// int area = length*breath;
// int perimeter = 2*(length+breath);
// cout<<"the area of rectangle is "<<area<<endl;
// cout<<"the perimeter of rectangle is "<<perimeter<<endl;
// Write a C++ program to take marks of 5 subjects and print the percentage.
// int maths;
// int science;
// int hindi;
// int Physics;
// int drawing;
// cin>>maths;
// cin>>science;
// cin>>hindi;
// cin>>Physics;
// cin>>drawing;
// int totalmarks = 500;
// int OutOfMarks = maths+science+hindi+Physics+drawing;
// int percentage = OutOfMarks*100/totalmarks;
// cout<<"You score "<<percentage<<" percentage";
//Input the radius of circle and calculate
// int radius;
// cin>>radius;
// int area = PI*radius*radius;
// int circumference = 2*PI*radius;
// cout<<"Area of circle is "<<area<<endl;
// cout<<"Circumference of circle is "<<circumference;
//Input temperature in Celsius and convert it to Fahrenheit using formula
// int celsius;
// cin>>celsius;
// int fahrenhiet = (celsius*9/5)+32;
// cout<<"The Temperature is "<<fahrenhiet;
//
//write a program to calculate the BMI using
// int height;
// int weight;
// cin>>height;
// cin>>weight;
// int BMI = weight/(height*height);
// cout<<BMI;
}