Wednesday, 13 February 2019

If, if else and nested if program in c language 2019

If ,if else and nested if program in c language

If statement in c  language

Syntax:


Example:


If else statement in c programming language

Syntax:


Example:


Nested if statement in c language:


Syntax:

Example:

#include<stdio.h>
int main()
{
//Assigning value to the variable
int x=10;

if(x>5)//checking the condition
{
  if(x<15)//checking the condition
     {
     printf("x is greater than 5 and less than 15");
     }

}
}

### output ###
x is greater than 5 and less than 15




Combined program if ,if else and nested if statement in c language


1.  Write a program greater value of two number.

###Output###
Enter first number 45
Enter second number 50
Second no is greater 


2. Write a program greater value in three number.

###output###
Enter first number 50
Enter second number 60
Enter third number40
60 is greater


3.Check given no is positive or negative or zero.


###Output###
   
Enter any number
10
No is positive


4.   Show result according to percent using if statement.

###Output##

Enter your percent
65
First division


5.  Write a login program.

                  }

###Output###
Enter user name
easy@gmail.com
Enter password
12345
Login successful

6. Check character is vowel or consonent.


###Output###
Enter any alphabet
e
Vowel


7.   Write a voting program.


###output###.

Enter your age 
20
You are eligible for voting

8.     Write a program to find given no is even or odd.


###Output###

Enter any number
5
Odd


9.  Input three angle of triangle and check triangle is valid or not.


###Output###
Enter first angle
45
Enter second angle
85
Enter third angle
50
Triangle is valid

10.  Calculate profit or loss.

###Output###

Enter cost price
70
Enter selling price
50
Loss is 20

Tuesday, 12 February 2019

Improve jio network and speed 2019


नमस्कार!दोस्तो आज में आपको jio  सिम के बारे में जानकारी दूंगा ।की आप jio  सिम के network और internet speed बड़ा सकते है।नीचे कुछ सेटिंग दी गई है
।कृपया इन सेटिंग्स को करके अपने मोबाइल /फ़ोन की स्पीड बड़ा सकते है

Mobile Settings:

1.   Open setting
2.   Mobile&netwokrs settings
3.   Jio 4G
4.   Access point name
5.  Reset a default
         
After all setting shutdown the mobile and open after 3~5 minutes.

 Chrome setting:

1.  Open chrome browser
2.   Settings
3.    Privacy
4.   Clear browsing data
5.    Clear data.


Thanks


Beginners basic c program

Basic C Program For Beginners

Hello!Friend I tells us some basic program for beginners in c programming language.C language has developed by dennis ritchie in 1972.It has developed in AT & BELL LAB in USA.It is a middle level language.

Some basic program


Addition of two number.

#include<studio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
print("enter the value of a\n");
scanf ("%d",&a);
Printf("enter the value of b\n");
scanf ("%d",&b);
c=a+b;
printf("sum of :%d",c);
getch();
}
Output:

enter the value of a 10

enter the value of b30

Sum of :40

Write a program substraction of two number.
https://onlinesantoffers.blogspot.com/?m=1


Write a program swapping of two number
with third party

#include<studio.h>
#nclude<conio.h>
void main()
{
int a,b,t;
clrscr();
printf("enter the value of a and b");
scanf("%d%d",&a,&b);
t=a;
a=b;
b=t;
printf("swapping value of a and b %d%d",a,b);
getch ();
}
Output:
enter the value a and b 10
20
Swapping  value a and b 10
20



Write a program swapping of two variable without third party.

#include<stdio.h>
#include<condo.h>
void main()
{
int a,b;
printf ("enter the value of a and b");
scanf ("%d%d",&a,&b);
a=a+b;
b=a-b;
a=a-b;
printf("swapping value a and b:%d%d",a,b);
getch ();
}

Output:
enter value a and b 10
20
Swapping value a and b:20
10

Write a program to find a square root of a particular number.


#include<stdio.h>
#include<conio.h>
void main ()
{
Float n,p;
printf("enter value of n \n");
scanf ("%f",&n);
p=sqrt (n);
printf(" value of p:%f",p);
getch ();
}

Output:
enter value of n 4
Value of p:2

If, if else and nested if program in c language 2019

If ,if else and nested if program in c language If statement in c  language Syntax: Example: If else statement in c ...