C

C program to Make a Simple Calculator Taking two Inputs & calculate their Addition, Subtraction. Multiplication, Division : SOLVED

Problem Statement Write a C program to Make a Simple Calculator (Taking two Inputs & calculate their Addition, Subtraction. Multiplication, Division). Source Code //Write a C program to Make a Simple Calculator (Taking two Inputs & calculate their Addition, Subtraction. Multiplication, Division). #include <stdio.h> #include <stdlib.h> void main(){ float var1,var2,ans; int ch; //Taking inputs printf(“Enter …

C program to Make a Simple Calculator Taking two Inputs & calculate their Addition, Subtraction. Multiplication, Division : SOLVED Read More »

C program to Swap the value of two Variables | Using a 3rd Variable & without Using a 3rd Variable

Problem Statement Write a C program to Swap the value of two Variables. (Using a 3rd Variable & without Using a 3rd Variable) Source Code //Using a 3rd Variable #include <stdio.h> #include <stdlib.h> void main(){ float var1,var2,var3; //Taking inputs printf(“Enter Variable 1:\t”); scanf(“%f”,&var1); printf(“Enter Variable 2:\t”); scanf(“%f”,&var2); //Printing Inputs printf(“\n\nBefore Swap\n__________________\nVariable 1:\t%f\nVariable 2:\t%f”,var1,var2); //Swap using …

C program to Swap the value of two Variables | Using a 3rd Variable & without Using a 3rd Variable Read More »