Program:
import java.io.*;
import java.util.*;
class greater
{
public static void main(String[ ] args) {
System.out.println("Enter two values: ");
Scanner s = new Scanner(System.in);
int...
Control Statements
These statements are useful to decide which statements are executed and which statements are not to be executed and also decide the number of times that a particular...
Strings
A string is a group of characters enclosed in a curly braces or ends with a null character
--> The null character is present at the end of the string character array.
-->...
Functions
Functions are introduced by the concept of write once and run any number of times.
--> A Function is self contained block of code which perform a predefined task.
Syntax:
...
Files
--> A file is a defined data type used as data structure. A file is known as a string.
--> Files are used to stored data permanently to the external devices such as floppy disc and also...
Pointers
Pointer is a variable which stores address of another variable.
--> The syntax for declaring a pointer is as follows.
datatype *<var_name>
Eg:-...
Operators:
The symbol is used to perform an operation is called an operator.
--> An operator which expect only one operand is referred as Unary operator.
--> An operator which...
C Program to print PRIME Numbers upto the given Range.
Input: Enter N Value: 11
Output: 2, 3, 5, 7, 11
C Program:
#include< stdio.h >
#include< conio.h >
void main( )
{
...