- printf(); and cprintf(); សម្រាប់បញ្ចូលទិន្នន័យ ។
- scanf(); and cscanf(); សម្រាប់បញ្ចូលទិន្នន័យ ។
Ex:
// input and output information
#include<stdio.h>
#include<conio.h>
void main(){
clrscr();
int age;
printf("Enter Your Age :"); scanf("%d",&age); // input
printf("Your age is %d", age); // output
getch();
}
// input and output information
#include<stdio.h>
#include<conio.h>
void main(){
clrscr();
int age;
printf("Enter Your Age :"); scanf("%d",&age); // input
printf("Your age is %d", age); // output
getch();
}
No comments:
Post a Comment