Skip to main content

Posts

Showing posts from January, 2016

BIGGER NUMBER

 Q1 :  Write 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);   }                                                   }                                                 

FACTORIAL C CODE

  Q1 :  Write a C program to print Factorial of a number as an output?   Using Goto:  #include<conio.h>                                  #include<stdio.h>                                   void main()                                             {                                                             int n;                                                       int s=1;                                                   clrscr();                                                   scanf("%d",&n);                                      printf("\nthe number is=%d",n);              again :                                                    if(n>1)                                                     {                                                              s=s*n;                                                     n=n-1;                                                     goto again;                                        

HELLO WORLD

Q1 :  Write a C program to print "hello world" as an output? #include<conio.h>   #include<stdio.h>    void main()              {                               clrscr();                    printf("hello world"); getch();                    }                               *********************************************************************************** Sample Output:

ABOUT US

--------------- About Us ---------------- The Blog offers information and notes on the class subjects, instructed by the teacher and written by me. I have made this blog for the students who are for any reason are unable to attend the class. This will be an easy platform for them to get their class work and do it at anytime, anywhere and at their pace.   In this era of technology with just an internet connection, you can do anything and rely on this platform for your class work. Contacts Us: Facebook ID:  bcahubsd Email-  bcahubsd@gmail.com editor@bcahubsd.com

COMPUTER APPLICATION 2ND SEMESTER

SECTION-A  1. Algorithm and Programming Development: Steps in development of a program, Flow Charts, Algorithm Development, Program Debugging, Compilation and Execution. Overview of C: History of C, Importance of C, Structure of a C Program.  Elements of C: character set, identifiers and keywords, Data types, Constants and Variables, Assignment statement, Symbolic constant. Input/output: Unformatted & formatted I/O function in C, Input functions: scanf(), getch(),getche(), getchar(), gets(); output functions: printf(), putch(), putchar(), puts().  SECTION-B  2. Operators & Expressions: Arithmetic, relational, logical, bitwise, unary, assignment, conditional operators and special operators. Arithmetic expressions, evaluation of arithmetic expression, type casting and conversion, operator hierarchy & associativity.  Decision making & branching: Decision making with IF statement, IF-ELSE statement, Nested IF statement, ELSE-IF ladder, switch s