Posts

check variable value is greater then 10 or not

Image
check variable value is greater then 10 or not:- #include<stdio.h> #include<conio.h> void main() { int a,b; clrscr(); printf("enter the value of a = "); scanf("%d",&a); if(a>10) {printf("the value of a is greater then 10");} else {printf("the value of a is smaller then 10");} getch(); }                                      Output:-

Programm to evaluate expression

Image
Programm to evaluate expression:- #include<stdio.h> #include<conio.h> void main() { int a,b,c; float k; clrscr(); printf("enter the value of a = "); scanf("%d",&a); printf("enter the value of b = "); scanf("%d",&b); printf("enter the value of c = "); scanf("%d",&c); k=((a*b)+c)*((2.5*a)+b); printf("value of k is = %f ",k); getch(); } Output:-

how to root your phone easily

Image

c pragram to print hello world

Image
Programm for print "hello world" :- #include<stdio.h> #include<conio.h> void main() { clrscr(); printf("hello world"); getch(); }

c program for addition

Image
Programm for addition :- #include<stdio.h> #include<conio.h> void main() { clrscr(); int a,b,c; printf("enter the value of a="); scanf("%d",&a); printf("enter the value of b="); scanf("%d",&b); c=a+b; printf("sum is: %d"); getch(); }

c program for mulitiplication,division,addition and subtracting.

Image
Programm for addition,multiplication,subtraction and division :- #include<stdio.h> #include<conio.h> void main() { int a,b,c,d,e,f; clrscr(); printf("enter first numbers= "); scanf("%d",&a); printf("enter second number= "); scanf("%d",&b); c=a+b; printf("the sum of all no. is= %d",c); d=a-b; printf("\nthe subtraction of these no. is= %d",d); e=a*b; printf("\nthe multiplecation of these no.is= %d",e); f=a/b; printf("\nthe division of these no. is= %d",f); getch(); }