print examples
This commit is contained in:
parent
c55c2c7c8b
commit
6b0ac54b46
20
c-basic/print_example_with_scan.c
Normal file
20
c-basic/print_example_with_scan.c
Normal file
@ -0,0 +1,20 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
int a , b ;
|
||||
|
||||
printf("enter a number\n");
|
||||
scanf("%d", &a);
|
||||
|
||||
printf("enter b number\n");
|
||||
scanf("%d", &b);
|
||||
|
||||
printf("a is %d\n", a);
|
||||
printf("b is %d\n", b);
|
||||
|
||||
printf("a is %d b is %d\n", a, b);
|
||||
printf("b is %d a is %d\n", b, a);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user