## C Program of Sum of Digits in a given Integer

#include <stdio.h> void main() { long num, temp, digit, sum = 0; printf(“Enter the number \n”); scanf(“%ld”, &num); temp =…

## C Program to Accept two Integers and Check if they are Equal

#include <stdio.h> void main() { int m, n; printf(“Enter the values for M and N\n”); scanf(“%d %d”, &m, &n); if…

## C Program to Read Two Integers M and N & Swap their Values

#include <stdio.h> void swap(float *ptr1, float *ptr2); void main() { float m, n; printf(“Enter the values of M and N…

## C Program to Check if a given Integer is Positive or Negative

#include <stdio.h> void main() { int number; printf(“Enter a number \n”); scanf(“%d”, &number); if (number >= 0) printf(“%d is a…

## C Program to Calculate the Sum of Odd & Even Numbers

C program to find the sum of odd and even numbers from 1 to N. #include <stdio.h> void main() {…

## C Program to Check if a given Integer is Odd or Even

An integer is even if it is evenly divisible by 2 and odd if it is not then it is…

## Indian Railway – Seating arrangement for Sleeper Class

Write a program to determine the type of berth when the seat/berth number in the train is given. Input Format: Input…

## TECHNICAL QUIZ PROJECT IN C

QUIZ PROJECT IN C  #include<stdio.h> #include<conio.h> #include<ctype.h> #include<stdlib.h> #include<time.h> #include<dos.h> void displayscore() { char name[20]; float s; FILE *f; system(“cls”);…

## Zero Duplicates

Write a program that will read in a list of numbers and will then print out the same list except…