This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
int arr[100]; | |
int size; | |
int i, j, k; | |
printf("Enter size of the array or total numbers : "); | |
scanf("%d", &size); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
int main() | |
{ | |
char str[100], strmain[100], strup[100]; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() { | |
int arr[30], i; | |
printf("Enter the thirty numbers\n\n"); | |
for (int i = 0; i < 30; ++i) { | |
printf("Enter number%d: ", i + 1); | |
scanf("%d", &arr[i]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() { | |
int num; | |
printf("Enter a positive nonzero integer\n"); | |
scanf("%d", &num); | |
if(num && ((num & (num-1)) == 0)){ | |
printf("Yes", num); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
char ch; | |
printf("Please enter any character: "); | |
scanf("%c", &ch); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() { | |
int X, n1, n2, n3, i; | |
printf("Player 1 - Please enter your secret number: "); | |
scanf("%d", &X); | |
printf("Player 2 - Please enter your first guess now: "); | |
scanf("%d", &n1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Hide Price Range for WooCommerce Variable Products | |
add_filter( 'woocommerce_variable_sale_price_html', | |
'lw_variable_product_price', 10, 2 ); | |
add_filter( 'woocommerce_variable_price_html', | |
'lw_variable_product_price', 10, 2 ); | |
function lw_variable_product_price( $v_price, $v_product ) { | |
// Product Price | |
$prod_prices = array( $v_product->get_variation_price( 'min', true ), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() { | |
int sec, hh, mm, ss; | |
printf("Enter time in seconds: "); | |
scanf("%d", & sec); | |
hh = sec / 3600; | |
mm = (sec - hh * 3600) / 60; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() { | |
float u, a, t, s; // variable declaration | |
// input statement which take the values | |
printf("\n Enter initial velocity: "); | |
scanf("%f", & u); | |
printf("\n Enter acceleration: "); |