Contact Form

Name

Email *

Message *

Search This Blog

Image

Familiarization with C programming environment

C Programming

In 1972, Dennis M. Ritchie developed C programming, general-purpose, high-level, procedural and imperative computer language, at the Bell Telephone Laboratories. 1972, Dennis M. Ritchie developed C programming, general-purpose, high-level, procedural and imperative computer language, at the Bell Telephone Laboratories.



Father of C Language

About C language

  • C Language is the successor of B language.
  • UNIX operating system was built with the help of C programming language.
  • It is system software.
  • In 1988, the American National Standard Institute(ANSI) standardized the C Language.
  • Procedural language.
  • Easy to Learn.
  • It can handle low-level activities.

First C Program

In the first basic c program, the working of Functions ‘printf()’ and ‘scanf()’ explained

Source Code: –

#include<stdio.h>
int main()
    {    int a,b,c;
         printf("Enter The First Value : ");
         scanf("%d",&a);
         printf("Enter The Second Value : ");
         scanf("%d",&b);
         printf("A = %d\n",a);
         printf("B = %d\n",b);
         c=a+b;
         printf("Addition (A+B) = %d\n",c);
         c=a-b;
         printf("Subtraction (A-B) = %d\n",c);
         c=a*b;
        printf("Multiplication (A*B) = %d\n",c);
        c=a/b;
        printf("Division (A/B) = %d\n",c);
        c=a%b;
        printf("Modulus (A%%B) = %d\n",c);
        return 0;
   }

Output:-



Output

Description:

This program shows simple arithmetic calculations and uses of ‘printf()’ and ‘scanf()’ explained.

Note: The whole code is done in Codeblocks. You can download Codeblocks software from this link: http://www.codeblocks.org/downloads/26

Comments