Thursday, 23 January 2014

2: use of scanf()

//c program to print integer enter by user
#inclide<stdio.h>
int main()
int num ;
printf("enter a integer;");
scanf("%d",&num);
printf("you entered :%d",num);

return 0;
}
//out put
//enter a integer :25
//you entered:25

No comments:

Post a Comment