/* gcc -ansi -Wall -Wextra -pedantic -s -static 0.c -o 0 */
#include <stdio.h>
int main ( )
{
int n = 5 , factorial = 1 ;
while ( n != 0 )
{
factorial *= n ;
n -- ;
}
printf ( "%i\n" , factorial ) ;
return 0;
}
Using while loop, write a program which calculates the product of digits from 1 to 5 and also show these no's vertically.
Write a program which takes the temperature in farhenheight.the program should display the farhenheight temperature as well as centigrade. C= (f-32)*5/9
Perform encryption on the following PT using RSA and find the CT p = 3; q = 11; M = 5
12345 1234 123 12 1
#include#includevoid main(){ int a,i;printf("\nThe Multiplication table of 5 is:\n");for(i=1;i
nr\m;laeoh9y0m g.qthnedxc In fortran: do i=1,5 write(6,*)i enddo stop end This program will write the numbers 1 to 5 on the screen.
There is no such thing; you seem to have misunderstood something.Any real number can be regarded as a complex number with zero imaginary part, eg.: 5 = 5+0i
Here's a simple Java program to find numbers from 50 to 100 that are divisible by 5: public class DivisibleByFive { public static void main(String[] args) { for (int i = 50; i <= 100; i++) { if (i % 5 == 0) { System.out.println(i); } } } } This program uses a for loop to iterate through numbers from 50 to 100 and checks if each number is divisible by 5 using the modulus operator. If it is, the number is printed to the console.
Using while loop, write a program which calculates the product of digits from 1 to 5 and also show these no's vertically.
Write a program which takes the temperature in farhenheight.the program should display the farhenheight temperature as well as centigrade. C= (f-32)*5/9
int i=10, j=5, k; k=i*j; // k = 10 * 5 = 50
Write a program in C for showing working of different logical operator in C.Your program should guide users with proper message/menu on the console. (5 Marks)
To find the ratio for 5 over 8, you simply write it as a fraction: 5/8.
Perform encryption on the following PT using RSA and find the CT p = 3; q = 11; M = 5
It would depend on the program you are using and weather or not it is allowable.
12345 1234 123 12 1
5 x 5 x 5 x 5 = 625