filmov
tv
C calculator program 🖩
Показать описание
C calculator program tutorial example explained
#C #calculator #program
int main(){
char operator;
double num1;
double num2;
double result;
printf("\nEnter an operator (+ - * /): ");
scanf("%c", &operator);
printf("Enter number 1: ");
scanf("%lf", &num1);
printf("Enter number 2: ");
scanf("%lf", &num2);
switch(operator){
case '+':
result = num1 + num2;
printf("\nresult: %lf", result);
break;
case '-':
result = num1 - num2;
printf("\nresult: %lf", result);
break;
case '*':
result = num1 * num2;
printf("\nresult: %lf", result);
break;
case '/':
result = num1 / num2;
printf("\nresult: %lf", result);
break;
default:
printf("%c is not valid", operator);
}
return 0;
}
#C #calculator #program
int main(){
char operator;
double num1;
double num2;
double result;
printf("\nEnter an operator (+ - * /): ");
scanf("%c", &operator);
printf("Enter number 1: ");
scanf("%lf", &num1);
printf("Enter number 2: ");
scanf("%lf", &num2);
switch(operator){
case '+':
result = num1 + num2;
printf("\nresult: %lf", result);
break;
case '-':
result = num1 - num2;
printf("\nresult: %lf", result);
break;
case '*':
result = num1 * num2;
printf("\nresult: %lf", result);
break;
case '/':
result = num1 / num2;
printf("\nresult: %lf", result);
break;
default:
printf("%c is not valid", operator);
}
return 0;
}
C calculator program 🖩
How to Create a Simple Calculator Program using C Programming Language
Simple Calculator | C Programming Example
Simple Calculator Program In C
Make your own Advanced Calculator with C Programming : Complete Tutorial
Simple Calculator - C Programming
Simple Calculator Program using Switch Case: C Program
C_32 C Program to make simple calculator using Switch Case | C Language Tutorials
Basic Calculator | LeetCode Hard | Educative.io Day 105 | Stacks
calculator program using c | ms coder
Simple GUI Calculator using C
Make a GUI Calculator in C like a real Chad
How to make calculator using C language | Calculator using Switch Case In C programming
ASMR Programming - Calculator App Coding - No Talking
C# calculator program 🖩
Learn to Make Calculator using C Programming Language Full Easy Guide
C Programming Tutorial for Beginners
C language Program Using Switch Case calculator make
How to Create a Simple Calculator Program using C++ Programming Language ?
How to create a calculator in C# windows forms application
Learn to Make Calculator using C Programming Language Full Easy Guide
HAPPY BIRTHDAY wish in C Language || #shorts || #CloudCODE
How to Program A Calculator in C++! (Great C++ Microsoft Visual Studio Beginner Project)
How to Write a Calculator Program - Add, Subtract, Multiplication, Division using c language
Комментарии