class primenoSeries { void main () { int i = 1; // Used to divide number and check if they are factors or not. int C = 0; // used as a counter for number of factors. int n = 1; // Represent the...
class abc { void main( int num ) { int d = 1; int dig = 0; int temp = num; System.out.println(temp); while(num > 9) { num = num / 10 ; d = d * 10; } while( d != 0) { dig = temp / d; if( dig 1)...
include <stdio.h> main (int argc, char **argv) { long inx, num, n, ns, r1, r2; num = atol(argv[1]); printf("num=%ld\n", num); for (inx = 1; inx < num; inx++) { n = inx; ns = n*n; while (n...
include<iostream.h> #include<conio.h> int main() { int i,n; clrscr(); cout<<"PROGRAM TO CHECK IF THE NUMBER IS PRIME OR NOT:"<<endl; cout<<"Enter a number:";...
write a c program which reads an integer value from the keyboard then it displays the number in words? #include<stdio.h> #include<conio.h> void main(void) { int rev,n, clrscr();...