google search

Popular Posts


Welcome to BCA Notes

>>>>>>>>>>>>>>>>

Visitors

Search This Blog

Blogger templates

Visitor Map


Sunday, 19 January 2014

C Program to Print a Integer Entered by a User


C Program to Print a Integer Entered by a User

Source Code:-

#include <stdio.h> int main() { int num; printf("Enter a integer: "); scanf("%d",&num); /* Storing a integer entered by user in variable num */ printf("You entered: %d",num); return 0; }

Output


Enter a integer: 25You entered: 25

0 comments:

Post a Comment