Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- One No Problem:
- #include <stdio.h>
- main()
- {
- int a,b,c,big;
- scanf("%d%d%d",&a,&b,&c);
- if (a> b && a>c){
- printf("A is The Larger Number Of Them = %d",a);
- }
- else if(b>a && b>c){
- printf(" B is The Larger Number Of Tem = %d",b);
- }
- else if(c>a && c>b){
- printf("C is The Larger Number Of Them = %d ",c);
- }
- return 0;
- }
- Two No Problem :
- #include<stdio.h>
- main(){
- int a,b;
- int sum;
- printf("Type Your Two Digit For Sum, Thank You \n");
- scanf("%d%d",&a,&b);
- printf("Your Two Digit Are %d & %d \n",a,b);
- printf("What You Want To Do . \n 1. Addition + \n 2. Subtrack - \n 3. Multiply * \n 4. Divide / \n Enter Your Operator Number For Them and Enjoy \n ");
- scanf("%d",&sum);
- switch(sum){
- case 1 :
- printf(" Addition Of The Two Number is %d \n",a+b);
- break;
- case 2 :
- printf(" Subtrack Of The Two Number is %d \n",a-b);
- break;
- case 3 :
- printf(" Multiply Of The Two Number is %d \n",a*b);
- break;
- case 4 :
- printf(" Divide Of The Two Number is %d \n",a/b);
- break;
- }
- return 0;
- }
- Three No Problem :
- #include<stdio.h>
- main(){
- char letter;
- printf("Enter Your Character Letter \n");
- scanf("%c",&letter);
- printf("Your Character is = %c \n",letter);
- if (letter >= 'A' && letter<='Z'){
- printf("Your Character Is Capital Letter \n");
- }
- else{
- printf("Your Character Small Letter \n");
- }
- return 0 ;
- }
- Four No Problem:
- #include<stdio.h>
- #include<conio.h>
- main(){
- float radius,circal,p;
- float r = 3.1416;
- printf("Enter Your Radius Circal Area \n");
- scanf("%f",&radius);
- circal = r*(radius*radius);
- p = 2*r*radius;
- printf("Your Radius Circal Area Is = %.4f \n",circal);
- printf("\nYour Primitter Area Is = %.4f \n",p);
- int length, breadth, area;
- printf("\nEnter the Length of Rectangle : ");
- scanf("%d", &length);
- printf("\nEnter the Breadth of Rectangle : ");
- scanf("%d", &breadth);
- area = length * breadth;
- printf("\nArea of Rectangle : %d \n", area);
- int side, sqr;
- printf("\nEnter the Length of Side : ");
- scanf("%d", &side);
- sqr = side * side;
- printf("\nArea of Square : %d \n", sqr);
- }
Add Comment
Please, Sign In to add comment