#include<stdio.h> int main() { int num1,num2,num3; printf("\nEnter value of num1,num2,num3:"); scanf("%d %d %d", &num1, &num2 ,&num3); if((num1>num2)&&(num1>num3)){ printf("The greatest number is num1\n"); } else if((num2>num3)&&(num2>num1)){ printf("The greatest number is num2\n"); }else{ printf("The greatest number is num3\n"); } return 0; } after that when you run this code into your Vs code terminal, you have to give some input to your program then press "Enter" and you will see the output in your terminal.
Objective Welcome to the last day! Today, we're discussing bitwise operations. Check out the Tutorial tab for learning materials and an instructional video! Task Given set . Find two integers, and (where ), from set such that the value of is the maximum possible and also less than a given integer, . In this case, represents the bitwise AND operator. Function Description Complete the bitwiseAnd function in the editor below. bitwiseAnd has the following paramter(s): - int N: the maximum integer to consider - int K: the limit of the result, inclusive Returns - int: the maximum value of within the limit. Input Format The first line contains an integer, , the number of test cases. Each of the subsequent lines defines a test case as space-separated integers, and , res...
#include<stdio.h> int main(int argc, char *argv[]) { int a, b; printf("Enter number a\n"); scanf("%d", &a); printf("Enter number b\n"); scanf("%d", &b); printf("The sum is %d\n", a+b); return 0; } Now give two integers as user input and press "Enter" and check the results. If you have any doubt comment down below.
Comments
Post a Comment