Have any question ?
+91 8080-806-983
interviewprep@appliedroots.com
Register
Login
COURSES
C Programming
Interview Preparation Course
CRT Program
Diploma in AI and ML
Courses
C Programming
Interview Preparation Course
Success Stories
Forum
FAQ'S
Team
Contact Us
Home
Courses
C- Programming
Accept any two numbers, if the first number is greater than second then print the sum of these two numbers, otherwise print their difference. Write this program using ternary operator.
Accept any two numbers, if the first number is greater than second then print the sum of these two numbers, otherwise print their difference. Write this program using ternary operator.
Instructor:
admin
Duration:
1 mins
Full Screen
Close
This content is restricted. Please
Login
Prev
Next
Write a program to accept the number in decimal and print the number in octal and hexadecimal.
Write a program to accept any five digit number and print the value of remainder after dividing by 3.
Operators and Expressions
1.1
Integer Arithmetic Operators
10 min
1.2
Floating point Arithmetic Operator
7 min
1.3
Assignment Operator
9 min
1.4
Increment & Decrement Operators
8 min
1.5
Example on Increment / Decrements Operator
3 min
1.6
Relational Operators
8 min
1.7
Logical or Boolean operators
8 min
1.8
Comma operator
6 min
1.9
Condition (ternary) operator
6 min
1.10
Example on Ternary Operator
4 min
1.11
Sizeof operator
4 min
1.12
Precedence and Associativity
29 min
1.13
Type Casting/Conversion
16 min
1.14
Bitwise Operations
19 min
Practice Programs on Operators( Assignment Problems)
2.1
Write a program that enters the temperature in Celsius and convert that into Fahrenheit.
1 min
2.2
Write a program that Accepts the radius of the circle and calculate the area and perimeter of the circle.
1 min
2.3
Write a program to accept the number in decimal and print the number in octal and hexadecimal.
1 min
2.4
Accept any two numbers, if the first number is greater than second then print the sum of these two numbers, otherwise print their difference. Write this program using ternary operator.
1 min
2.5
Write a program to accept any five digit number and print the value of remainder after dividing by 3.
1 min
2.6
Write a program to accept the principal, rate, and number of years and find out the simple interest.
1 min
Control statements
3.1
If else
23 min
3.2
While-loop
25 min
3.3
Do-while
6 min
3.4
For loop
36 min
3.5
Nested loops and Infinite loops
14 min
3.6
Break & Continue
23 min
3.7
goto
11 min
3.8
switch-case
12 min
3.9
Solved problem 1
11 min
3.10
solved problem 2
6 min
3.11
solved problem 3
5 min
3.12
solved problem 4
9 min
3.13
solved problem 5
2 min
3.14
solved problem 6
5 min
3.15
solved problem 7
7 min
Close