Posts

GW-BASIC COMMANDS

Image
BASIC PROGRAMMING BASIC PROGRAMMING: Basic Pro gramming has some features as under: It is EASY It is USER FRIENDLY language It is NOT a specific language but it can be USED GENERALLY SYNTAX of this language is very SIMPLE It can be HELP us in SCIENTIFIC PROGRAMMING COMMUNICATION fro m this language is SIMPLE CHARACTER SET IN BASIC LANGUAGE: Alphabetic Characters Numeric Characters Special Characters Alphanumeric Characters (Relational) GW-BASIC COMMANDS IMPORTANT COMMANDS USED IN BASIC PROGRAMMING Some Commands that are mostly used in the basic programming are as shown under: AUTO ·         It generates AUTOMATIC line number ·         Each time <ENTER> key must be pressed KILL ·         It is used to DELETE A FILE from disk ·         Press KILL<filename> to delete all files from the dis...

programs of expression

Image
Expression: There are four expression 1-Arithmetic expression 2-Relational expression 3-Logical expression 4-Compound expression 1-Arithmetic expression: There are  5  arithmetic operator which are as follows Arithmetic operator Symbol Example Sum + A+B Subtraction - A-B Multiplication * A*B Division / A/B Module % A%B there are two types of low and high precedence level .High precedence operators are *,/,% and low precedence operators are +, - EXAMPLE OUTPUT Logical Operator it is use for compound condition by combining two or more conditions . There are three types of logical operators Logical operator Symbol Example Not ! A! AND && A&&B OR  I I

using gets statement

Image
FUNCTION OF GETS IN C LANGUAGE: In C language while inputting value space are not allowed to add space while inputting the name(char) we use gets inteed of scan  SYNTAX {  Int a[20]; printf("\n8888"); gets(a); } int a[20] a is the supposition and [20] is known as dimension EXAMPLE PROGRAM(simple) OUTPUT Program (Difficult)

how to find result using c language (For loop)

Image
FIND RESULT OF A STUDENT This program help you to find the result of a student of  100 students including the status of a student,section&grade OUTPUT:

IF THAN ELSE STATEMENT

Image
IF THAN ELSE STATEMENT: The general form of  this statement is as follows: when the above if statement is executed the condition expression is evaluated. if the condition is true then the block of statement is follow else mean if the condition is not true then other block of statement follows PROGRAM #1 OUTPUT: In this program when the condition n>450 is true then the statement that is written inside the bracket after are displayed .If condition n>450 is not satisfied then the statement after else is displayed. PROGRAM: OUTPUT

NESTED LOOP

Image
Nested loop mean loop with in the loop. It is the combination of two loop .When one loop finished which is inside the loop then the next loop (first loop) is executed.The Syntax of  this loop is as follows. PROGRAM#1 Firstly the loop that is present inside the first loop is executed then when the condition prove then control move towards first loop OUTPUT PROGRAM OUTPUT

DO WHILE LOOPING

Image
DO WHILE LOOP It is the frequently required that you want the loop to execute at least once as you do with menus and many other application in such condition you should begin with a statement that make a condition true it becomes tedious initializing the variable before each loop. C also provides a type of loop that checks the condition after executing the statements in the loop so you can sure it execute at least once.This sort of loop takes a form that is easy to understand    EXAMPLE: In the following program we print the alphabets from A to Z by using do while loop. As A to Z is a alphabet so char is used for supposition instead of int.The ch='A' show that it is input value that is shown in the loop .the ch=ch+1 show that it is an increment and after loop while statement is used with condition that condition is a ending point the program is shown as follows PROGRAM: OUTPUT: