Skip to main content

BIGGER NUMBER


 Q1Write a C program to print "Bigger number" out of the three?


 Using nested if:


 #include<conio.h>                     
 #include<stdio.h>                      
 void main()                                 
 {                                                 
 //bigger number                         
 int a=20,b=405,c=78;                
 clrscr();                                      
 if(a>b)                                        
 {                                                 
 if(a>c)                                        
 {                                                 
 printf("\nthe bigger no.=%d",a); 
 }                                                 
 else                                            
 {                                                 
 printf("\nthe bigger no.=%d",c); 
 }                                                 
 }                                                 
 else if(b>c)                                 
 {                                                 
 printf("\nthe bigger no.=%d",b); 
 }                                                 
 else                                            
 {                                                 
 printf("\nthe bigger no.=%d",c); 
 }                                                 
 getch();                                      
 }  

 Using && :

 #include<conio.h>                          
 #include<stdio.h>                           
 void main()                                    
 {                                                     
 //bigger number                             
 int a=20,b=405,c=78;                  
 clrscr();                                          
 if(a>b && a>c)                               
 {                                                     
 printf("\n\nthe bigger no.=%d",a);  
 }                                                    
 else if(b>a && b>c)                       
 {                                                    
 printf("\n\nthe bigger no.=%d",b); 
 }                                                    
 else                                               
 {                                                    
 printf("\n\nthe bigger no.=%d",c); 
 }                                                    
 getch();                                         
 }                                                    

***********************************************************************************


Sample Output:





Comments

Popular posts from this blog

ENTREPRENEURSHIP DEVELOPMENT PROGRAMME SYLLABUS

ENTREPRENEURSHIP DEVELOPMENT PROGRAMME
SECTION-A 
1.Project Formulation :

Need, Scope and approaches for project formulation; the structure of project report; study and analysis of sample project report; preparation of a project report; Techno- economic feasibility of the project. (No. of Periods : 25)

SECTION-B
2. Finance & Accounting :

Working capital assessment, its management & exercise thereon; Assessment of fixed capital and exercise thereon; Capital budgeting; Product costing and cost consciousness. Financial ratios and their significance; Break-even analysis; Credit institutions and financing procedures; Books of accounts, financial statements & fund flow analysis.

SECTION-C
3. Managing the Enterprise:

Resource management – men, material, money, and machines; Personnel management, Office management. E-Commerce: Introduction to E-Commerce, Benefits, Impact of E-Commerce, Classification of E-Commerce, Application of E-Commerce.

SECTION - D
4. Rules & Regulations:

Lic…

PRINCIPLES OF COMPUTER GRAPHICS & MULTIMEDIA TECHNOLOGY SYLLABUS

Computer Graphics
SECTION-A 
1. A Survey of Computer Graphics :

Computer Aided Design, Presentation Graphics, Computer art, Entertainment, Education and Training, Visualization, Image Pressing, Graphical User Interfaces.

2. Overview of Graphics Systems :

Video Display Devices, Raster Scan Systems, Random Scan Systems. Coloring technique : Beam Penetration, Shadow Mask. Graphics Monitors:Plasma Panel, LED,LCD. Properties of Display Devices : Persistence , Resolution, Aspect Ratio. and Workstations, Input Devices, Hard-copy devices, Graphics Software. Interactive Graphics, Passive Graphics.


SECTION-B
 3. Studying the Features and Developing Computer Graphics Using Standard Graphics packages like Auto CAD and Photoscape.

AutoCAD:

Features, Workspace, Commands to draw line, Polyline, rectangle, polygon, circle, spline, hatch; Modification Commands: Erase, copy, move, mirror, scale, Pan, Zoom, ESC, cl, trim; Layer, Dimension, image rotation, area calculation.

4. Developing Computer Graphics…

ENVIRONMENT AND ROAD SAFETY EDUCATION

SEMESTER – IINote: 

The syllabus has 15 topics to be covered in 25-hour lectures in total, with 2 lectures in each topic from 2 to 11 and one each for the topics 1 and 12 to 15.

1. Environment Concept: Introduction, the concept of biosphere – lithosphere, hydrosphere, atmosphere; Natural resources – their need and types; Principles and scope of Ecology; concepts of the ecosystem, population, community, biotic interactions, biomes, ecological succession.

2. Atmosphere: Parts of atmosphere, components of air; pollution, pollutants, their sources, permissible limits, risks and possible control measures.

3. Hydrosphere: Types of aquatic systems; Major sources (including ground water) and uses of water, problems of the hydrosphere, fresh water shortage; pollution and pollutants of water, permissible limits, risks and possible control measures.

4. Lithosphere: Earth crust, soil – a life support system, its texture, types, components, pollution and pollutants, reasons of soil erosion and poss…