Skip to main content

Posts

Showing posts with the label sequence

Featured Post

Data Mining with Weka -Installation

Weka - Data mining Tool W eka is a tool for big data and data mining. It is used to various classification, experiments, and analysis over large data sets. Installation Guide -weka  You can download Weka from   here   and follow the normal installation procedure. After completion you will get following window, here you can begin your classification or experiment on different data sets with Weka.

C - Programs (Sequence) Middle number among three

11. Write a program to enter any three numbers and find out the middle number. #include <stdio.h> #include <conio.h> void main () { // X: int a, b, c; printf ("Enter any three numbers:"); scanf ("% d% d% d", & a, & b, & c); if ((a> b && a <c) || ​​(a <b && a >c)) printf ("% d is middle number", a); else if ((b> a && b <c) || ​​(b <a && b >c)) printf ("% d is middle number", b); else if ((c> a && c <b) || (c <a && c> b)) printf ("% d is middle number", c); else { printf ("Wrong data entry"); // Goto x; }  getch (); }