multiplication table program in c
Multiplication table program in c This program will compute the multiplication table of a given integer value from the user for the given specific number of rows. For example, if the user entered an input value 5 and the number of rows is 10 then it will form a multiplication table of 5 with 10 […]
reverse number program in c language
reverse number program in c language This program reverses a given input number from the user and then print it on the screen. Along with reverse number, we are finding the sum of digits and number of digits also. #include <stdio.h> int main() { int n,rn,sd,nd; printf(“Enter a value: “); scanf(“%d”,&n); rn=sd=nd=0; while(n>0) //+ve //while(n<0)-ve […]
c programming conditional operators example
c programming conditional operators We already discussed c programming conditional operators with various expressions in our earlier tutorial lets see few examples C program to find the minimum value of 3 variable /* simple example to find min value of 3 variable */ #include <stdio.h> int main() { int x,y,z,min; x=10; y=5; z=20; min = […]
c programming simple if else example
C programming simple if else example We already discussed c programming control flow statement with various types in our earlier tutorial lets see few examples C program to find the minimum value of 3 variable /* simple if statement example */ #include <stdio.h> int main() { int x,y,z,min; x=10; y=5; z=20; if(x<y&&x<z) { min=x; } […]