This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
main() | |
{ | |
int a, b, sub; | |
printf(“ Type the first number: “); | |
scanf(“%d”,&a); | |
printf(“ Type the second number: “); | |
scanf(“%d”,&b); | |
sub = a-b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
main() | |
{ | |
int a, b, mul; | |
printf(“ Type the first number: “); | |
scanf(“%d”,&a); | |
printf(“ Type the second number: “); | |
scanf(“%d”,&b); | |
mul = a*b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
main() | |
{ | |
int a, b; | |
float div; | |
printf("Type the first number: "); | |
scanf("%d",&a); | |
printf("Type the second number: "); | |
scanf("%d",&b); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
main() | |
{ | |
int c, f; | |
printf("Enter celcious temperature :"); | |
scanf("%d",&c); | |
f=9*c/5+32; | |
printf("Ferhenheight temperature:%d”,f); | |
getch(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
main() | |
{ | |
int c, f; | |
printf("Enter Ferenheight temperature :"); | |
scanf("%d",&f); | |
c=5*(f-32)/9; | |
printf("Celcious temperature:%d”,c); | |
getch(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
main() | |
{ | |
int b,h; | |
float area; | |
printf("Enter the Base:"); | |
scanf("%d",&b); | |
printf("Enter the Height:"); | |
scanf("%d", &h); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
#include<math.h> | |
main() | |
{ | |
int a, b, c; | |
float s, area; | |
printf("Enter 3 integer values :"); | |
scanf("%d %d %d", &a,&b,&c); | |
s = (a + b + c)/2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
main() | |
{ | |
int a,b,x; | |
printf("Enter the length & width: "); | |
scanf("%d %d",&a,&b); | |
x=a*b; | |
printf("\nThe area is %d",x); | |
getch(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
main ( ) | |
{ | |
int r; | |
float area; | |
printf ("Enter integer value for radius:"); | |
scanf ("%d", &r) ; | |
area = 3.14*r*r; //here the vakue of PI is 3.14 | |
printf("\n Area of circle =%f", area); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <conio.h> | |
main( ) | |
{ | |
int a,b,ans; | |
printf("Enter a number: "); | |
scanf("%d",&a); | |
printf("Enter another number: "); | |
scanf("%d",&b); | |
ans=(a>b)?a:b; |
OlderNewer