Divide Integer Find the Quotient and Remainder Programming

C – Divide Integer Find the Quotient and Remainder

  • April 24, 2021
  • 0 Comments

Write a program to divide an integer by another integer and find the quotient and remainder. C Code #include <stdio.h>#include <conio.h>void main(){ int a,b,quo,rem; clrscr(); printf(“Enter two numbers A and B:”); scanf(“%d%d”,&a,&b); quo=a/b; rem=a%b; printf(“The Quotient=%d”,quo); printf(“n The Remainder=%d”,rem); getch();} Output

Check Whether the Entered Number is Even or Odd Programming

C – Check Whether the Entered Number is Even or Odd

  • April 23, 2021
  • 0 Comments

Write a program to check whether the entered number is even or odd. C Code #include <stdio.h>#include <conio.h>void main(){ int number; printf(“enter number : n”); scanf(“%d”,&number); if(number%2==0) printf(“%d is even numbern”,number); else printf(“%d is odd numbern”, number); getch();} Output

Programming

C – Take Integer Input and Display Appropriate Alphabets using Switch Case

  • April 23, 2021
  • 0 Comments

Write a program to take an integer as an input which will be the value of alphabets up to 26 alphabets using switch case. C Code  #include <stdio.h>#include <conio.h>void main(){ int alphabets; ABC:printf(“nEnter the value of alphabets:”); scanf(“%d”,&alphabets); printf(“nThe alphabet is : “); switch (alphabets){ case 1: printf(“A”); break; case 2: printf(“B”); break; case 3: […]

Introduction to OS What is & Queries

Introduction to OS, Functions and Types of Operating System

  • April 21, 2021
  • 0 Comments

An Operating System or OS is a kind of system software that controls and coordinates the overall operation of the computer. It is responsible for the various activities of the computer system. It Controls the computer hardware, controls the execution of application programs and provides the set of services to the users. The Operating System […]

Find Greater of Two Entered Numbers Programming

C Program to Find Greater of Two Entered Numbers

  • April 21, 2021
  • 0 Comments

Write a c program with declaring integer variable a, b, c, d, e, f; and make three segments of these six variables to take input and find the greater number among two combinations. Write a program to find greater of two numbers. C Code #include <stdio.h>#include <conio.h>void main(){ int a, b, c, d, e,f; printf(“nenter […]

While, Do-While and For Loops Programming

Comparison of While, Do-While and For Loops

  • April 21, 2021
  • 0 Comments

While Loop Initialization is not the integral part   The loop continuation condition test is done at the beginning of the loop.    The Loop variable is not the integral part of the loop. It should be handled explicitly. The loop body is never executed if the condition is false. That is loop body is […]

digit number and display sum of first and last number Programming

C – Enter 4 Digit Number and Display Sum of First and Last Number

  • April 21, 2021
  • 0 Comments

C Enter 4 Digit Number and Display Sum of First and Last Number C Code #include<stdio.h>#include<conio.h>void main(){ int n, r, sum = 0; printf(“Enter 4 digit number: “); scanf(“%d”,&n); r= n/1000; sum = sum+r; r= n%10; sum=sum+r; printf(“sum of first and last digit : %d”, sum); getch();} Output Write a program to enter 5 digit […]

Find Greater Number by Using Function Programming

C Program to Find Greater Number by Using Function

  • April 21, 2021
  • 0 Comments

Write a c program that takes integer input a, b, c, d, e, f; and make three segments of these six variables to take input and find the greater number among two combinations by using functions. If you are looking for the program without using function take a look below, C Program to Find greater numbers […]