Java
- More from Java
Other Recent Articles
-
0
Addition,subtraction,multiplication and division in single C program
Addition,subtraction,multiplication and division in single C program #include #include void main() { Int a,b,c,d,e; float f; clrscr(); printf(“enter the value of a&b\n”); Scanf(“%d%d”,&a,&b); c=a+b; printf(“add value C=%d”,c); d=a-b; printf(“Sub value isD=%d”,d); e=a*b; printf(“Sub value isE=%d”,e); f=a/b; printf(“Sub value isF=%d”,f); getch(); }
-
How to write Division program in C
How to write Division program in C #include<stdio.h> #include<conio.h> Void main() { Int a,b,c; clrscr(); printf(“enter the value\ n”); scanf(“%d%d,&a,&b);// read i/p from user c=a/b; // perform multiplication &store in c printf(“%d”,c); getch(); }
-
How to write multiplication program in C
How to write multiplication program in C #include<stdio.h> #include<conio.h> Void main() { Int a,b,c; clrscr(); printf(“enter the value\ n”); scanf(“%d%d,&a,&b);// read i/p from user c=a*b; // perform multiplication &store in c printf(“%d”,c); getch(); }
-
How to write Subtraction program in C
How to write Subtraction program in C #include<stdio.h> #include<conio.h> Viod main() { Int a,b,c; Clrscr();// clear the previous output Printf(“enter the value a&b\n”); Scanf(“%d%d”,&a,&b); c=a-b; printf(“%d”,c); getch(); } Output: Enter the value of a and b 1 2 Ans: -1
-
How to write addtion program in C
How to write addtion program in C #include<stdio.h> #include<conio.h> Viod main() { Int a,b,c; Clrscr();// clear the previous output Printf(“enter the value a&b\n”); Scanf(“%d%d”,&a,&b); c=a+b; printf(“%d”,c); getch(); } Output: Enter the value of a and b 1 2 Ans: 3
-
Hello world!
Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
- Archives: