www.programiz.com
Open in
urlscan Pro
165.22.44.186
Public Scan
URL:
https://www.programiz.com/c-programming/examples/print-integer
Submission: On June 17 via manual from IN — Scanned from US
Submission: On June 17 via manual from IN — Scanned from US
Form analysis
4 forms found in the DOMPOST /c-programming/examples/print-integer
<form action="/c-programming/examples/print-integer" method="post" id="search-api-page-search-form-simplest-programming-tutorials-f" accept-charset="UTF-8">
<div>
<div class="search-input search-api-page-search-form-simplest-programming-tutorials-f"><button type="submit" class="search-input__form-submit" hidden=""></button><button type="\"button\"" class="search-input__clear btn"><svg
class="programiz-icon">
<use xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#x"></use>
</svg></button><button type="\"button\"" class="btn btn--clear c-default"><svg class="programiz-icon programiz-icon--small search-input__icon">
<use xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#search"></use>
</svg></button><input type="text" value="" placeholder="Search tutorials & examples" id="edit-keys-2" name="keys_2" class="search-input__control js-bound" autocomplete="off"><input type="hidden" name="id" value="2"><input type="hidden"
name="form_build_id" value="form-Yd0CqSkfI_suCTev4tM5mEszyKH9ycxV-gV80l2hH-w"><input type="hidden" name="form_id" value="search_api_page_search_form_simplest_programming_tutorials_f"></div>
</div>
</form>
POST /c-programming/examples/print-integer
<form class="webform-client-form webform-client-form-1680" action="/c-programming/examples/print-integer" method="post" id="webform-client-form-1680" accept-charset="UTF-8">
<div>
<div class="form-item webform-component webform-component-markup webform-component--page-feedback-header">
<p class="font-weight-600" style="font-size: 18px;">Sorry about that.</p>
<label class="social-area__label" style="margin-top: 20px; font-size: 14px;">How can we improve it?</label>
</div>
<div class="rate-share-form">
<div class="col-md-12">
<div class="form">
<div class="form-item webform-component webform-component-textarea webform-component--dislike-feedback">
<label class="element-invisible" for="edit-submitted-dislike-feedback">Feedback <span class="form-required" title="This field is required.">*</span></label>
<div class="form-textarea-wrapper resizable textarea-processed resizable-textarea"><textarea required="required" placeholder="Enter your message..." class="form__control form__control--textarea form-textarea required"
id="edit-submitted-dislike-feedback" name="submitted[dislike_feedback]" cols="60" rows="5"></textarea>
<div class="grippie"></div>
</div>
</div>
</div>
</div>
</div><input type="hidden" name="details[sid]">
<input type="hidden" name="details[page_num]" value="1">
<input type="hidden" name="details[page_count]" value="1">
<input type="hidden" name="details[finished]" value="0">
<input type="hidden" name="form_build_id" value="form-gxjpebcgrGPRYJsfIwffGHK0Tk0VWEBRAKXn8ttNanI">
<input type="hidden" name="form_id" value="webform_client_form_1680">
<input type="hidden" name="honeypot_time" value="1686983677|1CjOeGGGSz2IACXRJ3dCJ5SXoJAucrKSXUflc2w5nIU">
<div class="phone-textfield">
<div class="form-item form-type-textfield form-item-phone">
<label for="edit-phone">Leave this field blank </label>
<input autocomplete="off" type="text" id="edit-phone" name="phone" value="" size="20" maxlength="128" class="form-text js-bound">
</div>
</div>
<div class="form-actions">
<div>
<div class="d-flex justify-content-end"><input class="webform-submit button-primary btn btn-submit-feedback btn--medium btn--block-sp form-submit ajax-processed" type="submit" id="edit-submit" name="op" value="Submit Feedback"></div>
</div>
</div>
</div>
</form>
POST https://email.programiz.com/form/submit?formId=9
<form autocomplete="false" role="form" method="post" action="https://email.programiz.com/form/submit?formId=9" id="mauticform_generalsubscribersformmobile" data-mautic-form="generalsubscribersformmobile" enctype="multipart/form-data"
class="card card--even-spaced card--shadowed-up card--no-border card--even-spaced__container" target="mauticiframe_generalsubscribersformmobile">
<div class="mauticform-error" id="mauticform_generalsubscribersformmobile_error"></div>
<div class="mauticform-message" id="mauticform_generalsubscribersformmobile_message"></div>
<div class="mauticform-innerform">
<div class="footer__form__title">Join our newsletter for the latest updates.</div>
<div class="mauticform-page-wrapper mauticform-page-1 input-group" data-mautic-form-page="1">
<div id="mauticform_generalsubscribersformmobile_email1" class="mauticform-row mauticform-email mauticform-field-1 mauticform-required input-group" data-validate="email1" data-validation-type="email">
<input id="mauticform_input_generalsubscribersformmobile_email1" name="mauticform[email1]" value="" placeholder="Enter Email Address" class="mauticform-input input-group__control js-bound" type="email">
<span class="mauticform-errormsg" style="display: none;">This is required.</span>
</div>
<div id="mauticform_generalsubscribersformmobile_submit" class="mauticform-row mauticform-button-wrapper mauticform-field-2 input-group">
<button type="submit" name="mauticform[submit]" id="mauticform_input_generalsubscribersformmobile_submit" value="" class="mauticform-button input-group__action input-group__action--btn btn btn--primary">Join</button>
</div>
</div>
</div>
<input type="hidden" name="mauticform[formId]" id="mauticform_generalsubscribersformmobile_id" value="9">
<input type="hidden" name="mauticform[return]" id="mauticform_generalsubscribersformmobile_return" value="">
<input type="hidden" name="mauticform[formName]" id="mauticform_generalsubscribersformmobile_name" value="generalsubscribersformmobile">
<input type="hidden" name="mauticform[messenger]" id="mauticform_generalsubscribersformmobile_messenger" value="1">
</form>
POST https://email.programiz.com/form/submit?formId=6
<form action="https://email.programiz.com/form/submit?formId=6" autocomplete="false" class="footer__form" data-mautic-form="generalsubscribersform" enctype="multipart/form-data" id="mauticform_generalsubscribersform" method="post" role="form"
target="mauticiframe_generalsubscribersform">
<div class="mauticform-error" id="mauticform_generalsubscribersform_error"></div>
<div class="mauticform-message" id="mauticform_generalsubscribersform_message"></div>
<div class="mauticform-innerform">
<div class="footer__form__title">Join our newsletter for the latest updates.</div>
<div class="mauticform-page-wrapper mauticform-page-1 input-group" data-mautic-form-page="1">
<div class="mauticform-row mauticform-email mauticform-field-1 mauticform-required input-group" data-validate="email1" data-validation-type="email" id="mauticform_generalsubscribersform_email1">
<input class="mauticform-input input-group__control js-bound" id="mauticform_input_generalsubscribersform_email1" name="mauticform[email1]" placeholder="Enter Email Address" type="email" value="">
<span class="mauticform-errormsg" style="display: none;">This is required.</span>
</div>
<div class="mauticform-row mauticform-button-wrapper mauticform-field-2 input-group" id="mauticform_generalsubscribersform_submit">
<button class="mauticform-button input-group__action btn btn--primary" id="mauticform_input_generalsubscribersform_submit" name="mauticform[submit]" type="submit" value="">Join</button>
</div>
</div>
</div>
<input id="mauticform_generalsubscribersform_id" name="mauticform[formId]" type="hidden" value="6">
<input id="mauticform_generalsubscribersform_return" name="mauticform[return]" type="hidden" value="">
<input id="mauticform_generalsubscribersform_name" name="mauticform[formName]" type="hidden" value="generalsubscribersform">
<input type="hidden" name="mauticform[messenger]" id="mauticform_generalsubscribersform_messenger" value="1">
</form>
Text Content
PUSH YOUR LIMITS Join #ProgramizSummerChallenge Start The Challenge JOIN PRO LEARN IN-DEMAND PROGRAMMING SKILLS THIS SUMMER Join #ProgramizSummerChallenge and earn a unique certification. Enroll Now! Courses Tutorials Examples Try PRO for FREE Learn C Interactively Explore Programiz Python JavaScript SQL HTML R C C++ Java RUST Golang Kotlin Swift C# DSA C EXAMPLES * Swap Two Numbers * Find the Size of int, float, double and char * Compute Quotient and Remainder * Find ASCII Value of a Character * Multiply Two Floating-Point Numbers * Add Two Integers * Print an Integer (Entered by the User) * C "Hello, World!" Program Learn C practically and Get Certified. ENROLL POPULAR TUTORIALS Data Types in C C if...else Statement C for Loop Arrays in C Programming Pointers in C Start Learning C POPULAR EXAMPLES Check odd/even number Find roots of a quadratic equation Print Pyramids and Patterns Check prime number Print the Fibonacci series Explore C Examples REFERENCE MATERIALS string.h math.h ctype.h View all Learning Paths Challenges LEARN C INTERACTIVELY Try for Free COURSES Interactive Python Course Interactive SQL Course Interactive Java Course View all Courses Python JavaScript SQL HTML R C C++ Java More languages LEARN C PRACTICALLY AND GET CERTIFIED. ENROLL FOR FREE! POPULAR TUTORIALS Data Types in C C if...else Statement C for Loop Arrays in C Programming Pointers in C Start Learning C All C Tutorials REFERENCE MATERIALS string.h math.h ctype.h View all Python JavaScript R C C++ Java Kotlin Learn C practically and Get Certified. ENROLL FOR FREE! POPULAR EXAMPLES Check odd/even number Find roots of a quadratic equation Print Pyramids and Patterns Check prime number Print the Fibonacci series All C Examples C EXAMPLES * Swap Two Numbers * Find the Size of int, float, double and char * Compute Quotient and Remainder * Find ASCII Value of a Character * Multiply Two Floating-Point Numbers * Add Two Integers * Print an Integer (Entered by the User) * C "Hello, World!" Program C TOPICS * Display Factors of a Number * Calculate Average Using Arrays * Check Whether a Number is Palindrome or Not * Count Number of Digits in an Integer * C Input Output (I/O) * Check Whether a Number is Positive or Negative Ad Ad C PROGRAM TO PRINT AN INTEGER (ENTERED BY THE USER) In this example, the integer entered by the user is stored in a variable and printed on the screen. To understand this example, you should have the knowledge of the following C programming topics: * C Variables, Constants and Literals * C Data Types * C Input Output (I/O) -------------------------------------------------------------------------------- PROGRAM TO PRINT AN INTEGER #include <stdio.h> int main() { int number; printf("Enter an integer: "); // reads and stores input scanf("%d", &number); // displays output printf("You entered: %d", number); return 0; } Run Code Output Enter an integer: 25 You entered: 25 In this program, an integer variable number is declared. int number; Then, the user is asked to enter an integer number. This number is stored in the number variable. printf("Enter an integer: "); scanf("%d", &number); Finally, the value stored in number is displayed on the screen using printf(). printf("You entered: %d", number); Share on: Did you find this article helpful? Sorry about that. How can we improve it? Feedback * Leave this field blank Ad -------------------------------------------------------------------------------- RELATED EXAMPLES C Example Count Number of Digits in an Integer C Example Display Factors of a Number C Example Check Whether a Number is Palindrome or Not C Example Check Whether a Number is Positive or Negative Join our newsletter for the latest updates. This is required. Join Join our newsletter for the latest updates. This is required. Join TUTORIALS * Python 3 Tutorial * JavaScript Tutorial * SQL Tutorial * HTML Tutorial * R Tutorial * C Tutorial * C++ Tutorial * Java Tutorial * Rust Tutorial * Go Tutorial * Kotlin Tutorial * Swift Tutorial * C# Tutorial * DSA Tutorial EXAMPLES * Python Examples * JavaScript Examples * C Examples * Java Examples * Kotlin Examples * C++ Examples COMPANY * Change Ad Consent * Do not sell my data * About * Advertising * Privacy Policy * Terms & Conditions * Contact * Blog * Careers * Youtube APPS * Learn Python * Learn C Programming * Learn Java © Parewa Labs Pvt. Ltd. All rights reserved.