Advertisement
Guest User

CODE by vishwas(fixed)

a guest
Jan 26th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. /*PROGRAM to caluclate number by- Vishwas */
  2. #include <stdio.h>
  3. #include "stdafx.h"
  4.  
  5. int main()
  6. {
  7. int a;
  8. printf("Enter a number which you want to calculate counting of(less than 10)\n");
  9. scanf_s("%d",&a);
  10.  
  11. if ((a<=10)&&(a>=0))
  12. {
  13. printf("Congratulation,the number you entered is between 0 to 10!\n");
  14. //
  15. for(a;a>=0;a=a-1)
  16. {
  17. printf("%d\n",a);
  18. }
  19. }
  20. else
  21. {
  22. printf("Enter number between 0 to 10!\n");
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement