Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*PROGRAM to caluclate number by- Vishwas */
- #include <stdio.h>
- #include "stdafx.h"
- int main()
- {
- int a;
- printf("Enter a number which you want to calculate counting of(less than 10)\n");
- scanf_s("%d",&a);
- if ((a<=10)&&(a>=0))
- {
- printf("Congratulation,the number you entered is between 0 to 10!\n");
- //
- for(a;a>=0;a=a-1)
- {
- printf("%d\n",a);
- }
- }
- else
- {
- printf("Enter number between 0 to 10!\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement