codoplex@gmail.com
codoplex
  • Weebly Tutorials
  • Web Services
    • Weebly Website Development
    • WordPress Website Development
    • WordPress Website Admin Support
  • Weebly Widgets
    • Colored Line Divider
    • SEO Headlines
    • Codo Cards >
      • Simple Card
      • Content Card
      • Image Card
      • Team Card
      • Author Card
      • Image Service Card
      • Icon Service Card
      • Pricing Table Card
    • Social Icons
  • Recent Works
  • Projects
    • Weebly Widget Demos
    • Slider Using Weebly Slideshow Element
    • Full Screen Slider
    • Fertility Calculator
  • Courses
    • Programming Fundamentals
    • Freelancing Course
    • Web Systems and Technologies
    • Web Engineering
    • WordPress Website Development Course
    • Weebly Website Development Course
  • C Programming Blog
  • Store
  • Contact
  • Weebly Tutorials
  • Web Services
    • Weebly Website Development
    • WordPress Website Development
    • WordPress Website Admin Support
  • Weebly Widgets
    • Colored Line Divider
    • SEO Headlines
    • Codo Cards >
      • Simple Card
      • Content Card
      • Image Card
      • Team Card
      • Author Card
      • Image Service Card
      • Icon Service Card
      • Pricing Table Card
    • Social Icons
  • Recent Works
  • Projects
    • Weebly Widget Demos
    • Slider Using Weebly Slideshow Element
    • Full Screen Slider
    • Fertility Calculator
  • Courses
    • Programming Fundamentals
    • Freelancing Course
    • Web Systems and Technologies
    • Web Engineering
    • WordPress Website Development Course
    • Weebly Website Development Course
  • C Programming Blog
  • Store
  • Contact

How to get value from user in C Programming

12/2/2017

0 Comments

 
Sometimes in a program we need to get values from user, process the values entered by user and print / output the results of that processing on the screen. In order to get values from user we use 'scanf' function which is part of the stdio.h library. Following simple program explains how to use scanf function to get 2 numbers from user, sum the 2 entered by the user and print the sum of 2 numbers on the output screen.

    

Output:

Picture
0 Comments



Leave a Reply.

    Archives

    December 2017
    November 2017

    Categories

    All
    C Programs

    RSS Feed

Powered by Create your own unique website with customizable templates.
© 2017 codoplex.weebly.com