Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- float num1;
- double num2;
- printf("Enter a number: ");
- scanf("%f", &num1);
- printf("Enter another number: ");
- scanf("%lf", &num2);
- printf("num1 = %f\n", num1);
- printf("num2 = %lf", num2);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement