Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- #include <stdio.h>
- #include <locale.h>
- int n = 876238467;
- ////////////////////////////////////////////////////
- int main() //
- {
- setlocale(LC_ALL, "RUS");
- scanf("%d", &n);
- printf("n = %d \n", n);
- switch(n)
- {
- case 100: printf("This number is 100");
- break;
- case 40: printf("This number is 40");
- break;
- default: printf("Unknown number.");
- }
- }
- */
- #include <stdio.h>
- #include <locale.h> // Это нужно для русского языка
- int n = 876238467;
- ////////////////////////////////////////////////////
- int main() //
- {
- setlocale(LC_ALL, "RUS");
- scanf("%d", &n);
- printf("число Pi = %.2f \n", 3.14);
- if( n > 100)
- {
- printf("This number is greater than 100.");
- return 0;
- }
- if( n == 100) { printf("This number is 100"); return 0; }
- printf("Это число меньше, чем 100." );
- }
- // printf("n = %d \n", n);
- // if( n < 100) printf("This number is less than 100" );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement