Lets write a C program to count the number of occurrences of digit k in user input positive integer number n, using iterative logic. We will be using while loop to iterate in this program.
For Example: If user inputs n = 1550, and k = 5, then our C program should find how many times digit 5 is present in number 1550.
Note: (num % 10) fetches last digit in num. If num = 1234; (num%10) fetches the last digit from right, which is 4.
(num/10) removes the last number from right. If num = 1234; (num/10) removes last digit i.e., 4 and the result of (num/10) will be 123.
http://technotip.com/6947/c-program-to-find-prime-numbers-between-two-intervals-using-while-loop/
Lets write a C program to find and print/display all the prime numbers between 2 integer values input by the user, using nested while loop.
Prime Number: Any natural number which is greater than 1 and has only two factors i.e., 1 and the number itself is called a prime number.
C Programming Interview / Viva Q&A List
http://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert
http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/
...
https://www.youtube.com/watch?v=7JgeqZz9uhw
http://technotip.com/7006/c-program-to-convert-decimal-number-to-octal-number-using-while-loop/
Lets write a C program to convert a number from Decimal number system(base 10) to Octal number system(base 8), using while loop.
Expected Output for the Input
User Input:
Enter a decimal number
20
Output:
Octal equivalent of 20 is 24.
Explanation:
If user enters num = 20
We keep on dividing the number 20 by 8.
20 / 8 = 2, reminder 4.
02 / 8 = 0, reminder 2.
So Octal equivalent of decimal number 20 is 24.
C Programming Interview / Viva Q&A List
http://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert
http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/
...
https://www.youtube.com/watch?v=zd_rO67U-Gw
https://technotip.com/9471/c-program-to-print-integer-numbers-till-n/
Write a C program to print integer numbers till user entered limit(num).
Natural numbers are all numbers from 1, 2, 3, 4, 5, … They are the numbers you usually count and they will continue on into infinity.
Whole numbers are all natural numbers including 0.
e.g. 0, 1, 2, 3, 4, 5, …
Integers numbers include all whole numbers and their negative counterpart
e.g. …, -4, -3, -2, -1, 0,1, 2, 3, 4, 5, …
C Programming Interview / Viva Q&A List
https://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert
https://technotip.com/6086/c-programming-beginner-to-advance-to-expert/
Join this channel to get access to perks:
https://www.youtube.com/channel/UCFUKESqogHax2af9lmhICZQ/join
...
https://www.youtube.com/watch?v=K67VDa5iLLI
http://technotip.com/6635/c-program-to-check-whether-a-triangle-is-equilateral-isosceles-or-scalene/
If the three sides of a Triangle are entered through the keyboard, write a program to check whether the Triangle is isosceles, equilateral, scalene Triangle.
Note:
Equilateral Triangle: A Triangle is called equilateral triangle if length of 3 sides of it are equal.
Example: a = 10, b = 10, c = 10;
Isosceles Triangle: A Triangle is called isosceles triangle if length of 2 sides of it are equal.
Example: a = 5, b = 10, c = 10;
Scalene Triangle: A Triangle is called scalene triangle if length of all 3 sides are different or not equal.
Example: a = 5, b = 6, c = 10;
C Programming Interview / Viva Q&A List
http://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert
http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/
...
https://www.youtube.com/watch?v=m8vF8qvFvxE
http://technotip.com/7105/c-program-to-find-the-day-on-01-january-using-gregorian-calendar/
According to the Gregorian Calendar, it was Monday on the date 01/01/01. If any year is input through the keyboard write a program to find out what is the day on 1st January of this year.
Note: From 01/01 we understand that it's 1st of January. We shall take the year as 1900. We also know that 01 January 1900 was Monday.
Gregorian Calendar: the calendar introduced in 1582 by Pope Gregory XIII, as a modification of the Julian Calendar.
Expected Output for the Input
User Input:
Enter a year between 1900 and 2099
2020
Output:
The day on 01 January 2020 was Wednesday.
C Programming Interview / Viva Q&A List
http://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert
http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/
...
https://www.youtube.com/watch?v=mG2gfYAX14Q
http://technotip.com/6675/c-program-to-generate-odd-numbers-between-two-integers/
C program to generate ODD numbers between 2 integer values input by the user.
Note 1: An Odd number is an integer that is not exactly divisible by 2.
Note 2: ODD numbers are of the form ( 2 * n + 1 );
Note 3: Modular division( % ) returns remainder of division. For example, 10 / 2 = 5. But 10 % 2 = 0.
C Programming Interview / Viva Q&A List
http://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert
http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/
...
https://www.youtube.com/watch?v=vPzV7pE0Djw
http://technotip.com/3760/mixins-in-jade-node-js/
Basically, if you're repeating your code at many places you could place that code inside a mixin and replace your code with the mixin call. This would make your code cleaner and maintainable over long run.
Node.js Video Tutorial List:
http://technotip.com/3674/node-js-video-tutorial-list/
...
https://www.youtube.com/watch?v=g6DPkVpfauc
http://technotip.com/6823/c-program-to-print-natural-numbers-from-1-to-n-in-reverse-order-using-while-loop/
Lets write a single C program to print natural numbers from 1 to N in reverse order, using while loop.
C Programming Interview / Viva Q&A List
http://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert
http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/
...
https://www.youtube.com/watch?v=RDh7zjoLYNg
http://technotip.com/forums/topic/doctor-a-p-j-abdul-kalam-in-davangere/
Crowd In Davangere To Welcome Doctor A.P.J Abdul Kalam
The function was organized due to the (50 years) silver jubilee celebration of JJM medical college and was organized by Bapuji Education Association.
...
https://www.youtube.com/watch?v=jVSVvvwFCt4