Showing posts with label C Programming. Show all posts
Showing posts with label C Programming. Show all posts

Monday, January 22, 2018

C programming-Printf() & scanf()-part-2

Usage of Printf() & scanf()

printf() --- we use printf() for output some thing in c , printf() is a bulit-in function of C, which is define in <stdio.h> header file.
example: write something in printf(),like
printf("Hello freeboighor");
format of printf() function
printf("expected string",argument_list);
we can showing integer, string, float, character etc by printf(), We will do later.
output: Hello freeboighor
scanf() ---- we use scanf() to get value in c , scanf() is also a bulit-in function of C, which is define in <stdio.h> header file.example will show in later.
printf() output those values which you get by scanf() after doing some processing.
Example of printf() & scanf()
#include<stdio.h>
int main(){
int number;
printf("Enter a number:");
scanf("%d",&number);
printf("The number is : %d ",number)
printf("result is : %d ",number*number);
return 0;
}
Output :
Enter a number: 3
The number is : 3
result is : 9
We can also doing Addition ,Subtraction,Division. And have different type of way to do this
we do it later


Tag: Printf() & scanf(),Printf() & scanf() in c programming

Sunday, January 21, 2018

C Programming Language Tutorial-part-1

C Programming Language Tutorial


The C Language is produced for making framework applications that directly communicates to the equipment gadgets, for example, drivers, kernels and so on.

C writing computer programs is considered as the base for other programming dialects, that is the reason it is known as mother dialect.

It can be characterized by following ways:


  1. Mother language
  2. System programming language
  3. Procedure-oriented programming language
  4. Structured programming language
  5. Mid-level programming language

for compiling C programming code we need "Codeblock" software.



In the first place C Program 

Before beginning the abcd of C programming, you have to figure out how to compose, gather and run the principal c program. 

To compose the primary c program, open the C console and compose the accompanying code:

                         #include <stdio.h>
                                    int main()
                                         {
                                              printf("Hello freeboighor.blogspot.com");
                                              return 0;
                                         }  
                          Output:    Hello freeboighor.blogspot.com
#include <stdio.h>--- have the library of standard input output function . The printf() work is characterized in stdio.h .
int main() --- The main() work is the section purpose of each program in c dialect.
printf() --- The printf() work is utilized to print information on the support.
return 0 --- The return 0 explanation, returns execution status to the OS. The 0 esteem is utilized for fruitful execution and 1 for unsuccessful execution.
 Build and run the c program
for build go to Build menu and click on Build (also can do it by shortcut key Ctrl + F9)
for build go to Build menu and click on Run (also can do it by shortcut key Ctrl + F10)
also can do it together by simply click on Build&Run option or press F9.

Tag: C Programming Language Tutorial, first program,download code block,first program in c, compile and run the c program, Build and run the c program, Build and run the c program in code block.


Freelancing Website

Top online Earning or Freelancing Website 1. https://creativemarket.com/                 Graphics and Photography Related Site ...