Else if statment programe

Else if statment programe

Else if Statment
--------------------------
Syntax-
           if(condition)
                statment;
           else if(condition)
                statment;
           else if(condition)
                statment
                |
                |
                |   

                |
            else
               statment;        

 

Programe to find search a day.


#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf("Enter a no:");
scanf("%d",&n);
if(n==1)
printf("sunday");
else if(n==2)
printf("monday");
else if(n==3)
printf("tuesday");
else if(n==4)
printf("wednasday");
else if(n==5)
printf("tharsday");
else if(n==6)
printf("friday");
else if(n==7)
printf("saterday");
else
printf("invalid input");
getch();
}

Output:        
Enter a no:6 
friday           

Programe to print season name according to month no enter by user.

#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf("enter a no:");
scanf("%d",&n);
if(n==11||n==12||n==1)
 printf("Winter");
else if(n==2||n==3||n==4)
 printf("Spring");
else if(n==5||n==6||n==7)
 printf("Summer");
else if(n==8||n==9||n==10)
 printf("Rainy");
else
 printf("Wrong Input");
getch();
}

Output:        
Enter a no:3 
spring           

Programe to find greater a three number.

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
printf("Enter three no:");
scanf("%d%d%d",&a,&b,&c);
if(a>b&&a>c)
 printf("%d is greater ",a);
else if(b>a&&b>c)
 printf("%d is greater",b);
else
 printf("%d is greater",c);
getch();
}

Output:               
Enter three no:6 
2                         
9                         
9 is greater         

Programe to calculate grade of a student on the basis of percentage.

#include<stdio.h>
#include<conio.h>
void main()
{
int per;
char gd;
printf("Enter your percentage:");
scanf("%d",&per);
if(per>=90)
 gd='A';
else if(per>=80&&per<90)
 gd='B'
else if(per>=70&&per<80)
 gd='C';
else if(per>=60&&per<70)
 gd='D'
else
 gd='E';
printf("Percentage=%d\n",per);
printf("Grade=%c",gd);
getch();
}

Output:                             
enter your percentage:81 
Percentage=81                 
Grade=B                          



If else statment programe

If else statment programe

If else Statment
------------------------
syntax-
            if(condition)
             {
               statment;
             else
                {
                   statment;
                  }
                }


Write a programe to find greater two number

#include<stdio,h>
#include<conio.h>
void main(0
{
int a,b;
clrscr();
printf("Enter two no:");
scanf("%d%d",&a,&b);
if(a>b)
{
 printf("%d is greater than %d",a,b);
}
else
{
 printf("%d is greater than %d",b,a);
}
getch();
}

Output:                 
Enter two no:6      
2                            
6 is greater than 2 

Programe to find a given latter vowel or consonant.


#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
printf("Enter a latter:");
scanf("%c",&ch);
if(ch='A'||ch='a'||ch='E'||ch='e'||ch='I'||ch='i'||ch='O'||ch='o'||ch='U'||ch='u')
{
 printf("Vowel");
}
else
{
 printf("Consonant");
}
getch();
}

Output:             
Enter a latter:c  
Consonant        

If statment programe

If statment programe


If statment

---------------------
Syntax-
             if(condition)
              {
                 statment;
               }

Programe to check a given number is positive and negative.

#include<stdio.h>
#include<conio.h>
void main()
{
int num;
clrscr(;
printf("Enter a no:");
scanf("%d",&num);
if(num>0)
 printf("positive");
if(num<0)
 printf("Negative");
getch();
}

Output:        
Enter a no:4 
positive        

Write a programe to find greater two number.


#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
printf("enter two no:");
scanf("%d%d",&a,&b);
if(a>b)
 printf("%d is greater than %d",a,b);
if(a<b)
 printf("%d is greater tahn %d",b,a);
getch();

output:                   
enter two no: 8      
5                            
8 is greater than 5 

Kuch programe (Add , Intrest)

Kuch programe (Add , Intrest)


ADD TWO NUMBER

---------------------------------------


#include<stdio.h>
#include<conio.h>
void main();
{
 clrscr();
 int a,b,c;
printf("enter two no:");
scanf("%d%d",&a,&b);
c=a+b;
printf("add="%d);
getch();
}

Output:            
enter two no:6 
7                      
add=13            


Subtract two number-------------------------------

#include<stdio.h>
#include<conio.h>
void main();
{
 clrscr();
 int a,b,c;
printf("enter two no:");
scanf("%d%d",&a,&b);
c=a-b;
printf("Subtract="%d);
getch();


}

Output:            
enter two no:8 
4                      
subtract=4       

Simple Intrest
--------------------
#include<stdio.h>
#include<conio.h>
void main()
{
int P,R,T,SI;
clrscr();
printf("Enter principle, rate of intrest and number of year:");
scanf("%d%d%d",&P,&R,&T);
SI=(P*R*T)/100;
printf("Simple intrest=%d",SI);
getch();
}

Output:                                                                           
Enter principle, rate of intrest and number of year:200 
100                                                                                  
2                                                                                      
Simple intreast=400                                                        

Compound Intrest

--------------------------
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int P,R,T,CI;
printf("enter principal,rate of intrest and number of year:");
scanf("%d%d%d",&P,&R,&T);
CI=P*pow((1+(R/100)),T);
printf("Compound Intrest=%d",CI);
getch();
}

Output:                                                                          
enter principal,rate of intrest and number of year:200 
100                                                                                
2                                                                                    
Compound Intrest=800                                                 



c programe to find operater

c programe to find operater



Operator

Operator is a three types.

  1. Unary
  2. Binary
  3. Turnary

1.Unary-

  • Increment / Decrement operator
   ( Prefix )      ( Postfix )

#include<stdio.h>
#include<conio.h>
void main()
{
int x;
printf("Enter a no:");
scanf("%d",&x);
printf("prefix----------\n");
printf("x=%d\n",x);
printf("++x=%d\n",(++x));
printf("x=%d\n",x);
printf("--x=%d\n",(--x));
printf("Postfix-----------\n");
printf("x++=%d\n",(x++));
printf("x=%d\n",x);
printf("x--=%d\n",(x--));
printf("x=%d\n,x);
getch();
}

output:                 
enter a no:5         
prefix--------------
x=5                      
++x=6                  
x=6                      
--x=5                    
x=5                       
postfix--------------
x++=5                   
x=6                        
x--=6                     
x=5                       


2.Binary operator


  • Arithmatic operator ( + , - , * , / , % )


#include<stdio.h>
#include<conio.h>
void main()
{
int x1,x2;
printf("Enter two value:");
scanf("%d%d",&x1,&x2);
printf("Addition=%d",(x1+x2));
printf("Subtract=%d",(x1-x2));
printf("Multiply=%d",(x1*x2));
printf("Divide=%d",(x1/x2));
printf("Remainder=%d",(x1%x2));
getch();
}


Output:                
Enter two value:5
3                          
Addition=8          
Subtract=2           
Multiply=15        
Divide=1             
Remainder=2      


  • Relational operator ( < , > , <= , >= , == , != )

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("Enter two value:");
scanf("%d%d",&a,&b);
if(a>b)
printf("%d is greater than %d\n",a,b);
if(a<b)
printf("%d is lass than &b\n",a,b);
if(a>=b)
printf("%d is greater then equal %d\n",a,b);
if(a<=b)
printf("%d is lass than equal &d\n",a,b);
if(a==b)
printf("%d is equal to %d\n",a,b);
if(a!=b)
printf("%d is not equal to %d\n",a,b);
getch();
}

Output:                
Enter two value:5
3                           
5 is greater than 3
5 is lass than 3     
5 is not equal to 3


  • Assignment operator ( = , += , -= ,*= , /= , %= )


#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
a=5;
b=10;
printf("a=%d\tb=%d\n",a,b)
printf("a+=a -> %d\n",(a+=a));
printf("b-=6 -> %d\n",(b-=6));
printf("a*=10 -> %d\n",(a*=10));
printf("a/=2 -> %d\n",(a/=2));
printf("b%=2 -> %d\n",(b%=2));
getch();
}

Output:               
a=5        b=10     
a+=a   ->  10  
b-=6    ->  4    
a*=10  ->  100
a/=2    ->  50   
b%=2  ->  0    


  • Logical operator (&& , || , ! )

compare between condition
a) AND     &&
b) OR       ||
c) NOT     !

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
printf("Enter two value:");
scanf("%d%d",&a,&b);
if(a>=5&&b!=6)
printf("True1\n");
if(a!=6&&b>=15)
printf("True2\n");
if(a>=5&&b!=6)
printf("True3\n");
if(a!=6||b>=15)
printf("True4\n");
if(!(a>=15))
printf("True5\n");
if(!(a<5))
printf(True6\n");
getch();
}

Output:                
Enter two value:6
8                          
True1                   
True3                   
True5                   
True6                   

3.Turnary Operater ( ? and : operater)


  • 1st programe

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("Enter two no:");
scanf("%d%d",&a,&b);
a>b?printf("%d is greater ",a):printf("%d is greater ",b);
getch();
}

Output:            
Enter two no:5
6                      
6 is greater      


  • 2nd programe

#include<stdio.h>
#include<conio.h>
void main();
{
int a,b,max;
clrscr();
printf("Enter two number");
scanf("%d%d",&a,&b);
max=a>b?a:b;
printf("Maximum=%d",max);
getch();
}

Output:                     
Enter two number:8 
4                               
Maximum=8            



C Programe to find Area ( Circle, Rectangle, Trangle, Square)

C Programe to find Area ( Circle, Rectangle, Trangle, Square)



C language first chapter click here

1. Area of Circle

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
float r,area;
printf("enter radius:");
scanf("%d",&r);
area=3.14*r*r;
printf("area of circle=%d",area);
getch();
}

Output:                    
enter radius:5          
area of circle=78.5  


2.Area of Rectangle



#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int l,b,area;
printf("enter lenght & breath:");
scanf("%d%d",&l,&b);
area=l*b;
printf("area of ractangle=%d",area);
getch();
}

Output:                                  
enter lenght & breath:4 
5                                            
area of rectangle=20             


3. Area of trangle

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int h,b,area;
printf("Enter hight and base:");
scanf("%d%d",&l,&b);
area=0.5*h*b;
printf("Area of trangle=%d",area);
getch();
}

Output:                         
Entrer hight and base:3
4                                   
Area of trangle=6        

4.Area of Square

#include<stdio.h>
#include<conio.h>
void main()
{
int area,s;
clrscr();
printf("enter one side:");
scanf("%d%d",&s);
area=s*s;
printf("Area of square=%d",area);
getch();
}

Output:                  
enter one side:5     
Area of square=25 



(Medical) PMT entrence exam ki kare smart tayari

Medical (Pre medical test) ki tayari kare ab smart tarah se:-


Yadi aap PMT(pre medical test) dena chate hai to aap uski smart tarah se tayari kare. exam ki smart tarah se tayari ke liye aap kuch applications ki madat le sakte hain. aao jante hai kuch applications ke bare mai.

1.AIPMT - Formulae & Notes -

Cover artAIPMT ke exam ki tayari ke liye jaruri hai ki harame subject (physice, chemistry, biology)se related choti se choti cheejo per acchi  majboot pakad ho eske solution se liye yah application akdam best hai. aap sort notes, formule and thoram solve karne ke liye eski madat le sakte hai. es application ke jariye aap acchi tarah se revition ker sakte hai. yah application google play stor se download ker sakte hai. ya uper Heading par click kar ke direct play  store mai ja sakte hai or download kar sakte hai. eske liye android 2.3 ya esse uper ka version hona chaiye.
Cover artYah application medical exam ki tyari ke liye accha hai. yah application anay applications se thoda alag ahi. esme online test dane ke sath sath uske bare mai discous kar sakte ho.exam se time 100 quetion taji se update honge. agar test mai sabse aache score aaye to apka naam home screen per display hoga. jisse aap ko pta lagega ki aap ki kitne tayari hai.ese aap google play store se download kar sakte hai. ya uper Heading par click kar ke direct play  store mai ja sakte hain. eske liye android 2.3.3 ya usse uper ka version hona chaiye.


3. AIPMT Exam Paper & solusion -

Cover artExam jab pass mai aa jaye to yaha application batut important hai. ess application mai pre-medical test se jude 10 saal ke solved quesions diye gaye hai. sath hi esse jode physice, chemistry and biology subject ko cover kiya hua hai esme topicwise quesions bhi diye hai. aap yah book free mai download kar apne moblie and tablate par pade sakte hai. sabse aachi baat yah hai aap ess application ko offline use kar sakte hai. aap se application ko free mai google play store se download kar sakte hai.eske liye andriod 3.0 ya fir esse upre ka version hona chaiye.


4. PMT UG TEST -

Cover art PMT ki tyari ke liye ess application ki help le sakte hai. es application mai Biology, physice, chemistry ke sllyabus ko cover kiya hai.yaha diye gaye har test paper mai 45 quesion diye gaye hai or 45 minuts ka smaye diya gaya hai.yadi aap quesion ka galat answer date hai to uska sahi answer bataye jayega. or sath hi apke sabhi test atmpat ko save rakhta hai taki appke tayari ko or jayda improop kare. test mai hissa lane se aap apne tayari ko dakh sakte hai. ki aap ki kitne tayari hai. ess application ko aap google play store se free mai download kar sakte hai. 

yah post kaise lgi .yadi PMT se related kuch puchna hai to comment kare plz. THANK YOU

Video JArur Dakhe>>>>>  

https://youtu.be/eLRqvqSZcbg

Blog ka template kaise download or kaise upload kare

Apne blog ka template theme kaise change kare:-




Kaha se download kare:

Blog per template change karne ke liye sabse pahle apke pass template download hona chaiye tabhi to aap apne blog ki template theme change ker sakte hai.
   template download karne ke liye kafi website hai. jiske jariye aap temlate theame download ker sakte hai. or aap blogger se bhi template laga sakte hai. yaha main aap ko kuch website bta rha hu.



sabse pahle yah website per ja ker template download kar le

Kaise upload kare blog mai:-



sabse pahle aap blogger  per jaye. blogger ko login kare.
ab aap bloger ke dashboard mai jaye aese window khulagi.


Image result for blogger dashboard template


ab aapke left side mai template ka option choice karna hai. template choice karne ke baad aap ko next page per right side mai  Bcakup/Restore  naam ka button hoga us per click kar de. apko aesa dikhai dega. yadi apke blog mai jo template hai usko download kar sakte hai. download full template ke button per click ker ke.

Image result for blogger dashboard template
choose file ke buttan per click kar ke computer se vo template download kar le fir upload ke button per click kar de.or ak baat dhyan rhe pahle computer mai ja kar jaha per template download kiya hai usko khol kar template alag kar le fir usko upload kare.
Image result for blogger dashboard template
yah post kaise lage plz comments kare







Ab apne smartphon ko banaye or bhi smart

AB APNE SMART PHON KARE OR BHI SMART

Ess post mai main batane ja rha hu ki smartphon ko or bhi jayda smart kaise banaya jaye.
      google play stor per aese bahut se sotfwear hai jo apke phon ko smart banayge. jise aap baha se download ker sakte hai.
   yah softwear apke apni life ke liye bhi useful hai. yah application  apki sahat ka khayal bhi rakhyainge or in application se ak baar mai 50 se jayda phota share kar sakte hain.


yah hai kuch application 

1.samba:-


Cover art
yaha uper click karke download ker sakte hai. yadi aap apne kisi dost ko video massage send karte ho to aap uske face ka haal janana chate  ho to samba application uske face ka haal- bhab 15 secend mai video record karke bhaj data hai.yaha app logo ke beech famus ho rha hai. aap ess application ko download ker le or laabh utahe.

Cover art
google fit ak andorid application hai. yadi aap cahata hai ki apki physical activities jaise - calna, cycle chalana, ghumna. yadi aap cahate hai ki aap ki yah sab activities apki najar mai rahe to aap ko google play stor se 'google fit ' application download karna hoga. yah application batata hai ki aap daily , weekly and monthly kitna chale aadi
yadi aap yah download karna cahate hai to uper click kare.


facebook ko study ke liye use kare

facebook ko study ke liye use kare

Facebook ko kare apni padai mai use:


Image result for facebook groups

yah since ke students ke liye hai. kabhi kabhi aesa hota hai ki humre exam start ho jate hai or hum sab exam ki perpration mai lag jate hai. hum padte- padte kahi kisi question se paresaan ho jate hai or usse solve nahi ker pate. yah problam jayda physice, chemistry and mathematics mai hoti hai ass problam ko solve karne ke liye facebook per kuch groups mojood hai. jis per aap apna koi bhi questions ki problam daal sakte hai.

Yah kuch naam groups ke
-------------------------------------------------------------------

  • PHYSICE GROUPS

  • PHYSICE COACHING CLASSES

  • PHYSICE (MATHEMATICAL)

  • PHYSICE DISCUSSION FORUM

  • ADI CHEMISTRY

  • MATHS ADDICTED

  • MATHS MENTEL

  • ENGLISH CLASS VIDEO 

  • ENGLISH LANGUAGE VIDEO CLASS