Q. If sum of two integer is 14 and if one of them is 8 then find other integer. Ans: Well, this is very simple. Simply, one integer is 8 and sum of two integers is 14. So, we need to subtract the number 8 from their sum of 14 to get the second number. So, the second number is: 14 - 8 = 6 C-Program of this task Code---> #include<stdio.h> int main () { int num1 = 8 , num2 , sum = 14 ; num2 = sum - num1 ; printf ( "The second number is: %d" , num2 ); return 0 ; }
C-programs
♠ Patterns
- Print "Hello world" in C-language
- Basic integer addition in C-language
- Basic integer subtraction in C-language
- Basic integer multiplication in C-language
- Basic integer division in C-language
- Basic float addition in C-language
- Basic float subtraction in C-language
- Basic float multiplication in C-language
- Basic float division in C-language
- Swap to variables with the help of a 3rd variable
- Swap to variables without using 3rd variable
- Checking a number is odd or even
- C-program of checking a alphabet is vowel or consonant
- C-program of factorial of a number
- C-program to check a number is prime or not
- C-program for fibonacci series
- C-program to reverse a number
- C-program to check a number is palindrome number or not
- C-program to check a number is armstrong number or not
- C-program to check a number is Krishnamurthy number or not
- C-program to find the factors of a number
- C-program to make a calculator using switch-case
- C-program for multiplication table
- C-program to calculate power of a number
- C-program to convert binary number to decimal number and vice-versa
- C-program to calculate GCD of two numbers
- C-program to calculate LCM of two numbers
- C-program of calculate the sum of natural numbers up to N
- C-program to print A to Z using loop
- C program to check a number is Perfect number or not
- C-program to find Prime numbers between a range
- C-program to Convert the octal number into decimal and Vice-Versa
- C-Program of Scan and Print 5 Numbers using array
- C-Program of calculate the sum of 5 Numbers using array
- C-Program of Calculate the sum up to N numbers using Array
- C-Program of Sum of two Integer numbers using function
- C- Program of Multiplication of two numbers using Addition method
- C-Program of nPr & nCr Calculator
- C-Program of Factorial of an integer number using RECURSION
- C-Program of XOR calculation(2 bit)
- C-Program Of "Finding the LARGEST Number among 3 numbers and Checking all the possible Conditions."
- C-program of printing "Hello World", 10 times on the screen.
- C-Program of Printing Half Pyramid using *(Asterisk)
- C-Program of Printing Half Pyramid using 123(Numbers)
- C-Program of Bubble Sorting
- C-Program of Reading From a File
- C-Program of Write into a text-file(.txt)
- C-Program of Write into a text-file(.txt) and again read the content(in Run-Time)
- C-Program of Odd or Even Number Checking using Bitwise Operator
- C-Program of Swap Two Numbers Using Bitwise Operator
- C-Program of Calculate the Size of a File
- C-Program of Print Binary Equivalent of a Decimal Number Using Bitwise Operator
- C-Program of 1's Complement using Bitwise Operator
- C-Program of 2's Complement of a number using Bitwise Operator
- C-Program Of Stack
- C-Program of Linear Queue
- C-Program of Perfect Numbers in a Range
- C-Program of Singly Linked List
- C-Program of "Stack using Singly Linked List"
- C-Program of "Queue using Linked List"
- C-Program of "Storing a String"
- C-Program of "Reverse a string without strrev()"
- C-Program of "Reverse a string with strrev() function"
- C-Program of "Length of a String using strlen() in C-Language"
- C-Program of "Length of a String NOT using strlen()"
- C-Program of "String Copy using strcpy()"
- C-Program of "String Copy without strcpy() in C-Language"
- C-Program of "String Concatenation using strcat() function"
- C-Program of "String Concatenation without using strcat() function"
- C-Program of "String Compare using strcmp() function"
- C-Program of "Radix Sort"
- C-Program of "Matrix representation using 2D array"
- C-Program of "Show date and time"
- C-Program of "Counting Characters,Tabs,Spaces and Newlines"
- C-Program of "Time delay"
This post is so helpfull and informative.Keep updating with more information...
ReplyDeleteCyber Security Course in Mumbai
Cyber Security Course in Ahmedabad
Cyber Security Course in Kochi
Cyber Security Course in Trivandrum
Cyber Security Course in Kolkata