Currently browsing tag


Calculate factorial of integer - Flowchart

Calculate Factorial of the integer – C program – Code

Logic for finding Factorial Let n=5 be the number then, Factorial = 5 x 4 x 3 x 2 x 1 = 120 So, let’s do same logic in coding Flowchart   Code /*find factorial of integer*/ #include<conio.h> #include<stdio.h> void main() { int n, i, f; printf(“Enter any number: ”); …

Q-Basic – WAP using If-else if statement to find division, precentage and result

WAP which prompts to input name of a student and marks obtained in 5 subjects and then prints total, percentage, result and division.   This program in Q-Basic is an example of using if-else if statement to categorize division obtained by students with the total marks of five subjects. If-else …