Advertisement
Guest User

C LANG

a guest
Oct 21st, 2014
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<conio.h>
  3. main()
  4. {
  5. clrscr();
  6. float a,b,x;
  7.  
  8. printf("Input a number = ");
  9. scanf("%f",&a);
  10. x=(a/3);
  11. a=(a/3)*2;
  12. b=x;
  13. printf("\na = %.2f",a);
  14. printf("\na = %.2f",x);
  15. getch();
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement