#include<stdio.h>
void main()
{
int num1, num2,res;
char ch;
printf("\n Enter the 1st operand");
scanf("%d",&num1);
printf("\n Enter the operator");
scanf("%c",&ch);
printf("\n Enter the 2nd operand");
scanf("%d",&num2);
switch(ch)
{
case '+' :res=num1+num2; break;
case '-' :res=num1-num2; break;
case '*' :res=num1*num2; break;
case '/' :res=num1/num2; break;
}
printf("\n The result of %d %d %d is =%d",num1,ch,num2,res);
}
There are many different operators, which are you referring to?
Write a C program to Draw a RAINBOW and fill the suitable colors ...
write a note on event driven programming
Step 1. Learn the word "Fibonacci"...
you can use strstr()
a = b = c
There are many different operators, which are you referring to?
There is no simple answer because there is no simple rule for primes: it is certainly NOT an arithmetic progression.
give description of that then i will send the answer
To write a program that performs arithmetic operations between two matrices using arrays, first define two 2D arrays to represent the matrices. Then, create functions for each arithmetic operation (addition, subtraction, multiplication, etc.) that iterate through the elements of the matrices, performing the operation element-wise. Ensure to handle cases where the matrices have different dimensions, as this would affect the validity of the operations. Finally, print the result matrix after each operation.
Write a C program to Draw a RAINBOW and fill the suitable colors ...
abhimanyu
Write a program in C for showing working of different logical operator in C.Your program should guide users with proper message/menu on the console. (5 Marks)
write a note on event driven programming
Step 1. Learn the word "Fibonacci"...
you can use strstr()
The answer depends on what the explicit rule is!