- Joined
- Jan 4, 2017
- Posts
- 4,302
- Reaction
- 6,995
- Points
- 1,986
1.Write a program that will output :
15
3.75
W=5 //variables
x=10
y=a+b
a=15.0/4.0
2.Using (for) write a program that will input integers you want to add enter integer : 2
3. Using (if else)
a=10
Output:
If condition is satisfied a is greater than 20 value of a is : 10
4. Using (if condition)
a=10
Output:
If condition is satisfied a is greater than 20 value of a is : 10
15
3.75
W=5 //variables
x=10
y=a+b
a=15.0/4.0
2.Using (for) write a program that will input integers you want to add enter integer : 2
3. Using (if else)
a=10
Output:
If condition is satisfied a is greater than 20 value of a is : 10
4. Using (if condition)
a=10
Output:
If condition is satisfied a is greater than 20 value of a is : 10