Posts

Showing posts from August 26, 2012

PROGRAM TO ENTER THREE NOS. AND PRINT THE BIGGEST AMONG THEM

Image

INPUT MARKS IN FIVE SUBJECTS AND PRINT THE DIVISION

Image
/* >60
FIRST DIVISION
60-40
SECOND DIVISION

<40
THIRD DIVISION

/*
#include<stdio.h>
#include<conio.h>
void main()
{
long int a,b,c,d,e;
double avg;

clrscr();

printf("ENTER MARKS IN FIVE SUBJECTS");

scanf("%ld,%ld,%ld,%ld,%ld",&a,&b,&c,&d,&e);

avg=(a+b+c+d+e)/5;

if(avg>60)
printf("FIRST DIVISION");

else if(avg<40)
printf("THIRD DIVISION");

else
printf("SECOND DIVISION");

getch();
}

SIMPLE PROGRAMS FIND TYPE OF THE TRIANGLETEMPERATURE CONVERSIONCOMMISSION OF A SALESMANPRINT NUMBERS IN DESCENDING ORDERBIGGEST NUMBER AMONG THREE NUMBERSCALCULATE DIVISIONA YEAR IS LEAP OR NOTA NUMBER IS ODD OR EVEN PRINT THE SQUARE ROOT ELSE PRINT N TO THE POWER 5PRINT A NEW NUMBER BY ADDING 1 TO EACH DIGIT OF THE NUMBER PRINT THE NO. OF CURRENCY NOTES ACCORDING TO THE AMOUNT ENTEREDDATA STRUCTURES ENTER DETAILS OF A STUDENTENTER DETAILS OF A STUDENT USING STRUCTURE WITHIN A STRUCTURE

IMPORTANT EXAMPLES DIFFERENCE BETW…

PROGRAM TO CHECK WHETHER A NO. IS PALINDROME OR NOT

Image

PROGRAM TO CHECK WHETHER A YEAR IS LEAP YEAR OR NOT

Image

PROGRAM TO INPUT A NO. AND IF THE NO.IS ODD THEN PRINT THE SQUARE ROOT ELSE PRINT n TO THE POWER 5

Image